Skip to content

Commit 84aac6a

Browse files
committed
ci: Use reusable workflows for fmt and security_audit
1 parent 8419f89 commit 84aac6a

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 24 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:
@@ -92,27 +102,3 @@ jobs:
92102
- name: Install Rust
93103
run: rustup update stable
94104
- run: cargo clippy --all-features --tests --examples
95-
96-
fmt:
97-
runs-on: ubuntu-latest
98-
steps:
99-
- uses: actions/checkout@v4
100-
- name: Install Rust
101-
run: rustup update stable
102-
- run: cargo fmt --all --check
103-
104-
security_audit:
105-
permissions:
106-
checks: write
107-
contents: read
108-
issues: write
109-
runs-on: ubuntu-latest
110-
steps:
111-
- uses: actions/checkout@v4
112-
# rustsec/audit-check used to do this automatically
113-
- name: Generate Cargo.lock
114-
run: cargo generate-lockfile
115-
# https://github.com/rustsec/audit-check/issues/2
116-
- uses: rustsec/[email protected]
117-
with:
118-
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)