forked from ClueLang/Clue
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 827 Bytes
/
test.yml
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
name: Test
on:
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Cache build
uses: Swatinem/rust-cache@v2
- name: Setup
run: |
cargo install cargo-all-features
- name: Check
run: cargo check-all-features
- name: Test core
run: cargo test-all-features
test-wasm:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Cache build
uses: Swatinem/rust-cache@v2
- name: Setup
run: |
rustup target add wasm32-unknown-unknown
cargo install wasm-pack
- name: Test wasm
run: |
cd wasm
wasm-pack test --node