feat: introduce entryFiles in config to remove precompile transform
#186
Workflow file for this run
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: run-tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| Linux_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22 | |
| cache: "npm" | |
| - run: npm ci | |
| - name: cache emsdk | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| third_party/emsdk/node | |
| third_party/emsdk/python | |
| third_party/emsdk/upstream | |
| third_party/emsdk/.emscripten | |
| key: cache-${{ runner.os }}-emsdk-${{ hashFiles('scripts/**') }} | |
| - uses: ./.github/action/setup-ccache | |
| with: | |
| size: 128M | |
| key: ccache-${{ runner.os }}-build-${{ github.run_id }} | |
| restore-keys: | | |
| ccache-${{ runner.os }}-build- | |
| - run: npm run build | |
| - run: npm run lint | |
| - run: npm run test | |
| - working-directory: ./example | |
| run: | | |
| set -e | |
| npm ci | |
| npm run test | |
| npm run test:cjs | |
| - name: verify ccache stats | |
| run: | | |
| set -e | |
| ccache --show-stats | |
| Windows_test: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22 | |
| cache: "npm" | |
| - run: npm ci | |
| - name: cache emsdk | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| third_party/emsdk/node | |
| third_party/emsdk/python | |
| third_party/emsdk/upstream | |
| third_party/emsdk/.emscripten | |
| key: cache-${{ runner.os }}-emsdk-${{ hashFiles('scripts/**') }} | |
| - uses: ./.github/action/setup-ccache | |
| with: | |
| size: 128M | |
| key: ccache-${{ runner.os }}-build-${{ github.run_id }} | |
| restore-keys: | | |
| ccache-${{ runner.os }}-build- | |
| - run: npm run build | |
| - name: run test for windows | |
| run: | | |
| npm run test:as | |
| - name: verify ccache stats | |
| run: ccache --show-stats |