-
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (31 loc) · 990 Bytes
/
checks.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: Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macOS-latest] # ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: All targets checks
run: cargo check --workspace --all-targets
# - name: All features checks
# run: cargo check --workspace --all-features --lib --target wasm32-unknown-unknown
# - name: Rust Format checks
# run: cargo fmt --all -- --check
- name: Clippy checks
run: cargo clippy --workspace --all-targets --all-features -- -D warnings -W clippy::all
- name: Documentation tests
run: cargo test --workspace --doc
- name: All features for all targets tests
run: cargo test --workspace --all-targets --all-features
# - name: Web build test
# run: trunk build