Skip to content

Commit 292733b

Browse files
committed
CI
1 parent 5e3faa0 commit 292733b

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
6+
env:
7+
RUSTFLAGS: -Dwarnings
8+
9+
jobs:
10+
build_and_test:
11+
name: Build and test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: Install Rust
16+
uses: actions-rs/toolchain@v1
17+
with:
18+
toolchain: stable
19+
target: wasm32-wasip2
20+
- name: check
21+
uses: actions-rs/cargo@v1
22+
with:
23+
command: check
24+
args: --workspace
25+
26+
- name: test
27+
uses: actions-rs/cargo@v1
28+
with:
29+
command: test
30+
args: --workspace
31+
32+
check_fmt_and_docs:
33+
name: Checking fmt and docs
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@master
37+
- name: Install Rust
38+
uses: actions-rs/toolchain@v1
39+
with:
40+
toolchain: stable
41+
target: wasm32-wasip2
42+
- name: Format
43+
cmd: cargo fmt --all -- --check
44+
- name: Docs
45+
cmd: cargo doc
46+

0 commit comments

Comments
 (0)