Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on: [push, pull_request]
4
5 jobs:
6 check:
7 name: Check on v1.41
8 runs-on: ubuntu-latest
9 steps:
10 - name: Checkout sources
11 uses: actions/checkout@v2
12
13 - name: Install stable toolchain
14 uses: actions-rs/toolchain@v1
15 with:
16 toolchain: 1.41.1
17 override: true
18
19 - name: Run cargo check
20 uses: actions-rs/cargo@v1
21 with:
22 command: check
23 args: --all-features
24
25 test:
26 name: Test on stable
27 runs-on: ubuntu-latest
28 steps:
29 - name: Checkout sources
30 uses: actions/checkout@v2
31
32 - name: Install stable toolchain
33 uses: actions-rs/toolchain@v1
34 with:
35 toolchain: stable
36 override: true
37 components: rustfmt, clippy
38
39 - name: Run cargo fmt
40 uses: actions-rs/cargo@v1
41 with:
42 command: fmt
43 args: --all -- --check
44
45 - name: Run cargo clippy
46 uses: actions-rs/cargo@v1
47 with:
48 command: clippy
49 args: --all-features -- -D warnings
50
51 - name: Run cargo test
52 uses: actions-rs/cargo@v1
53 with:
54 command: test
55 args: --all-features