-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (41 loc) · 979 Bytes
/
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
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:
- '14'
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
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