File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Test Dory
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : ["**", main]
8+
9+ env :
10+ RUSTFLAGS : -D warnings
11+ CARGO_TERM_COLOR : always
12+
13+ concurrency :
14+ group : ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
15+ cancel-in-progress : true
16+
17+ jobs :
18+ fmt :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v4
22+ - uses : actions-rust-lang/setup-rust-toolchain@v1
23+ with :
24+ components : rustfmt
25+ - name : cargo fmt
26+ run : cargo fmt --all --check
27+
28+ clippy :
29+ runs-on : ubuntu-latest
30+ steps :
31+ - uses : actions/checkout@v4
32+ - uses : actions-rust-lang/setup-rust-toolchain@v1
33+ with :
34+ components : clippy
35+ - name : cargo clippy --all-features
36+ run : cargo clippy --all --all-targets --all-features
37+ - name : cargo clippy --no-default-features
38+ run : cargo clippy --all --all-targets --no-default-features
39+
40+ test :
41+ runs-on : ubuntu-latest
42+ name : Test
43+ steps :
44+ - uses : actions/checkout@v4
45+ - uses : actions-rust-lang/setup-rust-toolchain@v1
46+ - name : Install nextest
47+ uses : taiki-e/install-action@nextest
48+ - name : Run tests
49+ run : cargo nextest run --all-features
You can’t perform that action at this time.
0 commit comments