-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.08 KB
/
pr.yml
File metadata and controls
50 lines (48 loc) · 1.08 KB
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
name: PR
on:
pull_request:
env:
DOCKER_BUILDKIT: "1"
K8S_OPENAPI_ENABLED_VERSION: "1.30"
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.83.0
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
toolchain: 1.83.0
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
with:
toolchain: 1.83.0
command: clippy
args: -- --deny warnings
- uses: actions-rs/cargo@v1
with:
toolchain: 1.83.0
command: install
args: --locked cargo-deny --version=0.16.2
- uses: actions-rs/cargo@v1
with:
toolchain: 1.83.0
command: deny
args: check
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.83.0
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
toolchain: 1.83.0
command: test