Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2 on:
3 pull_request:
4 push:
5 branches: main
6
7 env:
8 CARGO_INCREMENTAL: 0
9 CARGO_NET_RETRY: 10
10 CI: 1
11 RUST_BACKTRACE: short
12 RUSTFLAGS: -D warnings
13 RUSTUP_MAX_RETRIES: 10
14
15 jobs:
16 test:
17 name: test
18 runs-on: ${{ matrix.os }}
19 strategy:
20 matrix:
21 os: [ubuntu-latest, macos-latest, "windows-latest"]
22
23 steps:
24 - uses: actions/checkout@v2
25 with:
26 fetch-depth: 0
27 - uses: actions-rs/toolchain@v1
28 with:
29 toolchain: stable
30 profile: minimal
31 override: true
32 - run: cargo test --all
33
34 check_fmt_and_docs:
35 name: Checking fmt and docs
36 runs-on: ubuntu-latest
37 steps:
38 - uses: actions/checkout@v2
39 with:
40 fetch-depth: 0
41 - uses: actions-rs/toolchain@v1
42 with:
43 toolchain: stable
44 components: rustfmt, clippy
45 override: true
46
47 - name: fmt
48 run: cargo fmt --all -- --check
49
50 - name: Clippy
51 run: cargo clippy --all --all-targets --all-features
52
53 - name: Docs
54 run: cargo doc