Debian Codegraph @

debian/missing-sources/nom_locate/.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on: [push, pull_request]
4
5 env:
6 RUST_MINVERSION: 1.65.0
7
8 jobs:
9 test:
10 name: Test
11 runs-on: ubuntu-latest
12
13 strategy:
14 matrix:
15 rust:
16 - stable
17 - beta
18 - nightly
19 - 1.65.0
20
21 features:
22 - ''
23 - '--features alloc --no-default-features'
24 - '--no-default-features'
25
26 steps:
27 - name: Checkout sources
28 uses: actions/checkout@v2
29
30 - name: Install rust (${{ matrix.rust }})
31 uses: actions-rs/toolchain@v1
32 with:
33 toolchain: ${{ matrix.rust }}
34 profile: minimal
35 override: true
36
37 - name: Build
38 uses: actions-rs/cargo@v1
39 with:
40 command: build
41 args: --verbose ${{ matrix.features }}
42
43 - name: Test
44 uses: actions-rs/cargo@v1
45 with:
46 command: test
47 args: --verbose ${{ matrix.features }}
48
49 - name: Doc
50 uses: actions-rs/cargo@v1
51 with:
52 command: doc
53 args: --verbose ${{ matrix.features }}
54
55 fmt:
56 name: Check formatting
57 runs-on: ubuntu-latest
58
59 steps:
60 - name: Checkout sources
61 uses: actions/checkout@v2
62
63 - name: Install rust
64 uses: actions-rs/toolchain@v1
65 with:
66 toolchain: stable
67 components: rustfmt
68 profile: minimal
69 override: true
70
71 - name: cargo fmt -- --check
72 uses: actions-rs/cargo@v1
73 with:
74 command: fmt
75 args: -- --check