[CI] dynamic node version

This commit is contained in:
Benjamin Kampmann
2021-12-16 11:35:24 +01:00
parent 7ad5bc7dee
commit 8feab722f8
+18
View File
@@ -156,13 +156,17 @@ jobs:
# hence the tests
name: ${{ matrix.name }} WASM test
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
node: [ "lts/*" ]
experimental: [ false ]
name:
- matrix-sdk-example-wasm_command_bot
- "matrix-sdk-example-wasm_command_bot@latest Node"
- matrix-sdk-base
- matrix-sdk-crypto
- matrix-sdk
@@ -185,6 +189,15 @@ jobs:
npm test
wasm-pack test --firefox --headless
- name: "matrix-sdk-example-wasm_command_bot@latest Node"
experimental: true # this might fail
node: "node" # building with latest
base_dir: matrix-sdk/examples/wasm_command_bot
cmd: |
npm install
npm test
wasm-pack test --firefox --headless
steps:
- name: Checkout the repo
uses: actions/checkout@v2
@@ -208,6 +221,11 @@ jobs:
profile: minimal
override: true
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install emscripten
uses: mymindstorm/setup-emsdk@v11