Skip to content

Commit a934092

Browse files
committed
Made audit run on PRs that touch Cargo.toml & Cargo.lock
1 parent 71536b9 commit a934092

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.github/workflows/audit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Audit
22

33
on:
44
push:
5+
pull_request:
56
paths:
67
- "**/Cargo.toml"
78
- "**/Cargo.lock"

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
with:
1818
toolchain: stable
1919
override: true
20+
- uses: actions-rs/cargo@v1
21+
with:
22+
command: install
23+
args: cargo-sweep
2024

2125
- name: Cache directories
2226
uses: actions/cache@v2
@@ -35,10 +39,6 @@ jobs:
3539
restore-keys: |
3640
cargo-test-build-${{ steps.install.outputs.rustc_hash }}-
3741
cargo-test-build-
38-
- uses: actions-rs/cargo@v1
39-
with:
40-
command: install
41-
args: cargo-sweep
4242
4343
- name: Register artifacts
4444
uses: actions-rs/cargo@v1
@@ -102,6 +102,10 @@ jobs:
102102
toolchain: stable
103103
override: true
104104
components: clippy
105+
- uses: actions-rs/cargo@v1
106+
with:
107+
command: install
108+
args: cargo-sweep
105109

106110
- name: Cache directories
107111
uses: actions/cache@v2
@@ -120,10 +124,6 @@ jobs:
120124
restore-keys: |
121125
cargo-clippy-${{ steps.install.outputs.rustc_hash }}-
122126
cargo-clippy-
123-
- uses: actions-rs/cargo@v1
124-
with:
125-
command: install
126-
args: cargo-sweep
127127
128128
- name: Register artifacts
129129
uses: actions-rs/cargo@v1

.github/workflows/deps.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
with:
1919
toolchain: stable
2020
override: true
21+
- uses: actions-rs/cargo@v1
22+
with:
23+
command: install
24+
args: cargo-sweep
2125

2226
- name: Cache directories
2327
uses: actions/cache@v1
@@ -36,10 +40,6 @@ jobs:
3640
restore-keys: |
3741
cargo-deps-build-${{ steps.install.outputs.rustc_hash }}-
3842
cargo-deps-build-
39-
- uses: actions-rs/cargo@v1
40-
with:
41-
command: install
42-
args: cargo-sweep
4343
4444
- name: Register artifacts
4545
uses: actions-rs/cargo@v1

0 commit comments

Comments
 (0)