Merge pull request #3 from reactnativecn/feat/covers-api-and-build-im… #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - ubuntu-24.04-arm | |
| - macos-15-intel | |
| - macos-latest | |
| - windows-latest | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| # bun 在 Windows 上生成 exe shim,而 prebuildify 硬编码 spawn node-gyp.cmd | |
| - if: runner.os == 'Windows' | |
| run: npm install -g node-gyp | |
| - run: bun install --ignore-scripts | |
| - run: bun run prebuild | |
| - run: node test/test.js | |
| - run: bun ./test/test.js |