-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 928 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
name: Specte-rs CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
code_cleaniness_checks:
name: Formatting Checks
runs-on: ubuntu-latest
steps:
- name: Setup Rust
uses: hecrj/setup-rust-action@v2
with:
rust-version: nightly
components: rustfmt, clippy
- uses: actions/checkout@v4
- run: cargo fmt --check
- run: cargo clippy --all
tests:
needs: code_cleaniness_checks
runs-on: ubuntu-latest
steps:
- name: Setup Rust
uses: hecrj/setup-rust-action@v2
with:
rust-version: stable
components: rustfmt
targets: wasm32-unknown-unknown
- uses: actions/checkout@v4
- name: Fetch Trunk
uses: jetli/[email protected]
with:
version: 'latest'
- run: cargo build
- run: cargo test