fix: make invoke runtime worker-safe #44
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20, 22] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.x" | |
| - name: Install Python FlatBuffers runtime | |
| run: python3 -m pip install flatbuffers | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install latest emsdk | |
| run: | | |
| git clone https://github.com/emscripten-core/emsdk.git "$RUNNER_TEMP/emsdk" | |
| cd "$RUNNER_TEMP/emsdk" | |
| ./emsdk install latest | |
| ./emsdk activate latest | |
| - run: source "$RUNNER_TEMP/emsdk/emsdk_env.sh" && npm ci | |
| - run: source "$RUNNER_TEMP/emsdk/emsdk_env.sh" && npm test | |
| - run: source "$RUNNER_TEMP/emsdk/emsdk_env.sh" && npm run check:compliance |