Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: Continuous Integration
2
3 on: [push, pull_request]
4
5 env:
6 CARGO_TERM_COLOR: always
7
8 jobs:
9 test:
10 name: Test Suite
11 runs-on: ubuntu-latest
12 steps:
13 - name: Checkout
14 uses: actions/checkout@v2
15 - name: Install Rust
16 uses: actions-rs/toolchain@v1
17 with:
18 toolchain: "1.65.0"
19 profile: minimal
20 override: true
21 - name: Build
22 run: cargo build --features all-impls --verbose
23 - name: Test
24 run: cargo test --features all-impls --verbose
25 - name: Test (no default features)
26 run: cargo test --no-default-features --verbose
27 rustfmt:
28 name: Rustfmt
29 runs-on: ubuntu-latest
30 steps:
31 - name: Checkout
32 uses: actions/checkout@v2
33 - name: Install Rust
34 uses: actions-rs/toolchain@v1
35 with:
36 toolchain: stable
37 profile: minimal
38 override: true
39 components: rustfmt
40 - name: Check formatting
41 uses: actions-rs/cargo@v1
42 with:
43 command: fmt
44 args: --all -- --check
45 clippy:
46 name: Clippy
47 runs-on: ubuntu-latest
48 steps:
49 - name: Checkout repository
50 uses: actions/checkout@v2
51 - name: Install Rust
52 uses: actions-rs/toolchain@v1
53 with:
54 toolchain: stable
55 profile: minimal
56 override: true
57 components: clippy
58 - name: Clippy Check
59 uses: actions-rs/cargo@v1
60 with:
61 command: clippy
62 args: --features all-impls -- -D warnings