Upgrade deprecated GitHub Actions to current versions #735
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: Unittests for wasm32-unknown-unknown | |
| on: | |
| push: | |
| branches: develop | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| jobs: | |
| unit-test: | |
| name: Run unit tests in browser | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install wasm-pack | |
| run: cargo install wasm-pack | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Setup test runner | |
| run: | | |
| cd ./.github/wasm-test-runner | |
| npm install | |
| - name: Run tests (without async-trait) | |
| run: | | |
| export WORKING_DIR=$(pwd) | |
| cd ./.github/wasm-test-runner | |
| node ./index.js | |