-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1005 Bytes
/
ci.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
44
45
46
47
name: CI
on:
push:
branches: '*'
jobs:
taplo-lint:
name: Lint toml files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
- name: install taplo cli
run: cargo install taplo-cli
- name: lint toml
run: taplo lint
- name: check format toml
run: taplo format --check
lint:
name: Lint files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: run format
run: cargo fmt --all -- --check
- name: run clippy
run: cargo clippy -- -D warnings
- name: run check
run: cargo check
- name: run audit
run: |
cargo install cargo-audit --locked
cargo audit --ignore RUSTSEC-2024-0344 --ignore RUSTSEC-2022-0093