Skip to content

Commit 64a9fa2

Browse files
committed
ci: Use reusable workflows for fmt and security_audit
1 parent 606d596 commit 64a9fa2

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ defaults:
2626
shell: bash
2727

2828
jobs:
29+
fmt:
30+
uses: smol-rs/.github/.github/workflows/fmt.yml@main
31+
security_audit:
32+
uses: smol-rs/.github/.github/workflows/security_audit.yml@main
33+
permissions:
34+
checks: write
35+
contents: read
36+
issues: write
37+
secrets: inherit
38+
2939
test:
3040
runs-on: ${{ matrix.os }}
3141
strategy:
@@ -95,28 +105,3 @@ jobs:
95105
- name: Install Rust
96106
run: rustup update stable
97107
- run: cargo clippy --all-features --all-targets
98-
99-
fmt:
100-
runs-on: ubuntu-latest
101-
steps:
102-
- uses: actions/checkout@v4
103-
- name: Install Rust
104-
run: rustup update stable
105-
- run: cargo fmt --all --check
106-
107-
security_audit:
108-
permissions:
109-
checks: write
110-
contents: read
111-
issues: write
112-
runs-on: ubuntu-latest
113-
steps:
114-
- uses: actions/checkout@v4
115-
# rustsec/audit-check used to do this automatically
116-
- name: Generate Cargo.lock
117-
run: cargo generate-lockfile
118-
# https://github.com/rustsec/audit-check/issues/2
119-
- uses: rustsec/[email protected]
120-
with:
121-
token: ${{ secrets.GITHUB_TOKEN }}
122-

0 commit comments

Comments
 (0)