Skip to content

Commit 30e24af

Browse files
committed
ci: add cargo audit check
1 parent 4f98556 commit 30e24af

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/actions/lint/action.yml renamed to .github/actions/check/action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
name: Lint
2-
description: Check the code style
1+
name: Check
2+
description: Check the code with audit, fmt and clippy
33
runs:
44
using: composite
55
steps:
6+
- name: Audit
7+
shell: bash
8+
run: |
9+
cargo install cargo-audit
10+
cargo audit
11+
612
- name: Fmt
713
shell: bash
814
run: cargo fmt --check

.github/workflows/build-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ jobs:
6464
with:
6565
version: ${{ steps.gen-version.outputs.VERSION }}
6666

67-
- name: Run lint
68-
uses: ./.github/actions/lint
67+
- name: Run check
68+
uses: ./.github/actions/check
6969

7070
- name: Run test
7171
uses: ./.github/actions/test

0 commit comments

Comments
 (0)