-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use reusable workflows for fmt and security_audit
- Loading branch information
Showing
1 changed file
with
11 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,16 @@ defaults: | |
shell: bash | ||
|
||
jobs: | ||
fmt: | ||
uses: smol-rs/.github/.github/workflows/fmt.yml@main | ||
security_audit: | ||
uses: smol-rs/.github/.github/workflows/security_audit.yml@main | ||
permissions: | ||
checks: write | ||
contents: read | ||
issues: write | ||
secrets: inherit | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -104,14 +114,6 @@ jobs: | |
run: rustup update stable | ||
- run: cargo clippy --all --all-features --all-targets | ||
|
||
fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust | ||
run: rustup update stable | ||
- run: cargo fmt --all --check | ||
|
||
miri: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -147,29 +149,11 @@ jobs: | |
cargo miri test --manifest-path=event-listener-strategy/Cargo.toml | ||
cargo miri test --manifest-path=async-lock/Cargo.toml | ||
security_audit: | ||
permissions: | ||
checks: write | ||
contents: read | ||
issues: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# rustsec/audit-check used to do this automatically | ||
- name: Generate Cargo.lock | ||
run: cargo generate-lockfile | ||
# https://github.com/rustsec/audit-check/issues/2 | ||
- uses: rustsec/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
loom: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust | ||
run: rustup update stable | ||
- name: Loom tests | ||
run: RUSTFLAGS="--cfg=loom" cargo test --release --test loom --features loom | ||
|
||
|
||
run: RUSTFLAGS="--cfg=loom" cargo test --release --test loom --features loom |