Skip to content

Commit

Permalink
.github/workflows/: move out cargo audit and clippy from the comm…
Browse files Browse the repository at this point in the history
…on workflow
  • Loading branch information
niklak committed Jan 15, 2025
1 parent f2bf1d1 commit ee18947
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Rust Clippy & Audit

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Run clippy
run: cargo clippy --verbose --all-targets -- -D warnings
- name: Install cargo audit
uses: taiki-e/install-action@cargo-audit
- name: Run audit
run: cargo audit
6 changes: 0 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,3 @@ jobs:
run: cargo test --verbose --all-targets
- name: Run tests with hashbrown
run: cargo test --verbose --all-targets --features "hashbrown"
- name: Run clippy
run: cargo clippy --verbose --all-targets -- -D warnings
- name: Install cargo audit
uses: taiki-e/install-action@cargo-audit
- name: Run audit
run: cargo audit

0 comments on commit ee18947

Please sign in to comment.