-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 912 Bytes
/
review.yml
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
name: Review
on:
pull_request:
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/review.yml'
env:
CARGO_INCREMENTAL: 0
jobs:
rust:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- name: Get Rust toolchain
id: toolchain
run: |
awk -F'[ ="]+' '$1 == "channel" { print "toolchain=" $2 }' rust-toolchain >> "$GITHUB_OUTPUT"
- name: install clippy
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ steps.toolchain.outputs.toolchain }}
components: clippy
- name: cache dependencies
uses: Swatinem/[email protected]
- name: clippy check
uses: sksat/[email protected]
with:
reporter: github-pr-review
- name: unit test
run: |
cargo test --no-run --locked
cargo test