Debian Codegraph @

debian/rust-vendor/lru/.github/workflows/main.yml

raw
1 on:
2 pull_request:
3 push:
4 branches:
5 - master
6
7 name: CI
8
9 # Adapted from recipe: https://github.com/actions-rs/meta/blob/master/recipes/matrix.md#workflow.
10 jobs:
11 ci:
12 runs-on: ubuntu-latest
13 strategy:
14 matrix:
15 rust:
16 - stable
17 - beta
18 - nightly
19 - 1.70.0 # MSRV
20
21 steps:
22 - uses: actions/checkout@v2
23
24 - uses: actions-rs/toolchain@v1
25 with:
26 profile: minimal
27 toolchain: ${{ matrix.rust }}
28 override: true
29 components: rustfmt, clippy
30
31 - uses: actions-rs/cargo@v1
32 with:
33 command: build
34
35 - uses: actions-rs/cargo@v1
36 with:
37 command: test
38
39 - uses: actions-rs/cargo@v1
40 with:
41 command: fmt
42 args: --all -- --check
43
44 - uses: actions-rs/cargo@v1
45 with:
46 command: clippy
47 # clippy::needless_lifetimes suggest unsound code in this crate
48 args: -- -D warnings -A clippy::needless_lifetimes