-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 961 Bytes
/
ci.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
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
workflow_dispatch:
push:
branches: [main, release-*]
pull_request:
branches: [main, release-*]
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Fmt
run: cargo fmt --check
- name: Config wasm environment
run: rustup target add wasm32-unknown-unknown
- name: Clippy
run: cargo clippy --target wasm32-unknown-unknown --all-features -- -D warnings
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Test
run: |
cargo test --no-default-features --features strsim
wasm-pack test --headless --firefox --all-features
- name: Build
run: |
wasm-pack build --debug --all-features