-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (42 loc) · 1.03 KB
/
wasm-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: WASM CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
'on':
push:
branches:
- main
pull_request: null
workflow_dispatch: null
jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
node_version:
- '18'
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: wasm32-unknown-unknown
- uses: IronCoreLabs/[email protected]
with:
crate: wasm-bindgen-cli
version: 0.2.92 # needs to match Cargo.toml and flake.nix version
accesskey: AKIAU2WBY6VDTC563V7G
secretkey: ${{ secrets.TOOL_CACHE_SECRET_KEY }}
os: ubuntu-20.04
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: yarn
- name: Install modules
run: yarn
- name: Compile
run: cargo update && yarn run compile
- name: Run tests
run: yarn run test