-
Notifications
You must be signed in to change notification settings - Fork 124
58 lines (49 loc) · 1.33 KB
/
dozer.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Dozer CI
on:
workflow_dispatch:
pull_request:
branches: [main]
merge_group:
env:
CARGO_TERM_COLOR: always
concurrency:
group: ci/${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
timeout-minutes: 60
runs-on:
labels: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install minimal stable with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: ⚡ Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/.crates.toml
~/.cargo/.crates2.json
~/.cargo/.package-cache
~/.cargo/registry/
~/.cargo/git/db/
target/
key: clippy-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
clippy-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
clippy-${{ runner.os }}-cargo-
- name: Clippy
run: |
cargo clippy --workspace --all-features --all-targets -- -D warnings
- name: Lint
run: |
cargo fmt -- --check