Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: Test suite
2 on:
3 push:
4 branches:
5 - main
6 pull_request:
7
8 jobs:
9 style:
10 name: Enforce style
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v2
14 - uses: actions-rs/toolchain@v1
15 with:
16 profile: minimal
17 # use nightly rustfmt for unstable options
18 toolchain: nightly
19 override: true
20 components: rustfmt
21 - uses: actions-rs/cargo@v1
22 with:
23 command: fmt
24 args: -- --check
25 test:
26 name: Run tests
27 needs: style
28 strategy:
29 matrix:
30 os:
31 - ubuntu-latest
32 - macos-latest
33 - windows-latest
34 rust:
35 - stable
36 - nightly
37 runs-on: ${{ matrix.os }}
38 steps:
39 - uses: actions/checkout@v2
40 - uses: actions-rs/toolchain@v1
41 with:
42 profile: minimal
43 toolchain: ${{ matrix.rust }}
44 override: true
45 - uses: actions-rs/cargo@v1
46 with:
47 command: test
48 - uses: actions-rs/cargo@v1
49 with:
50 command: test
51 args: --all-features
52 - uses: actions-rs/cargo@v1
53 with:
54 command: test
55 args: --no-default-features