-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (31 loc) · 895 Bytes
/
ci.yaml
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
name: Continuous Integration
on: [ push ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
build:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-wasi
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2.2.1
- name: Run cargo-audit binary crate
uses: rustsec/audit-check@v1.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: cargo build --all-features
- name: Unit Tests
run: cargo test --all --exclude http-backend
- name: Run Clippy
run: cargo clippy --all-targets --all-features