Skip to content

Commit 1590278

Browse files
authored
add test workflow (#9)
1 parent e7fd884 commit 1590278

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-18.04
14+
steps:
15+
- uses: actions/checkout@v1
16+
with:
17+
submodules: recursive
18+
- name: Install toolchain
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
profile: minimal
22+
toolchain: nightly-2019-12-04
23+
components: rustfmt
24+
target: wasm32-unknown-unknown
25+
default: true
26+
- name: Check format
27+
run: cargo fmt --all -- --check
28+
- name: Check Wasm
29+
run: cargo check --no-default-features --target=wasm32-unknown-unknown
30+
- name: Build
31+
run: cargo build --locked
32+
- name: Run tests
33+
run: cargo test --all

0 commit comments

Comments
 (0)