Debian Codegraph @

.github/workflows/test.yml

raw symbols SCIP
1 name: Tests
2
3 on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8
9 jobs:
10 fmt-and-test:
11 name: Test and check formatting
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v2
15 - name: Install toolchain
16 uses: actions-rs/toolchain@v1
17 with:
18 profile: minimal
19 toolchain: beta
20 override: true
21 components: rustfmt
22 - name: Rustfmt check
23 uses: actions-rs/cargo@v1
24 with:
25 command: fmt
26 args: --all -- --check
27 - name: Test
28 run: |
29 cargo test
30 cargo test --all-features
31 cargo test --no-default-features
32 cargo test --no-default-features --features libm
33
34 test:
35 name: Test MSRV
36 runs-on: ubuntu-latest
37 steps:
38 - uses: actions/checkout@v2
39 - name: Install toolchain
40 uses: actions-rs/toolchain@v1
41 with:
42 profile: minimal
43 toolchain: "1.32.0"
44 override: true
45 - name: Test
46 run: |
47 cargo test
48 cargo test --all-features
49 cargo test --no-default-features
50 cargo test --no-default-features --features libm