Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ on:

env:
CARGO_TERM_COLOR: always
# https://github.com/xd009642/tarpaulin
TARPAULIN_VERSION: 0.35.1
# https://github.com/est31/cargo-udeps
UDEPS_VERSION: 0.1.60
# https://github.com/rustsec/rustsec
AUDIT_VERSION: 0.22.1

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
linter:
Expand Down Expand Up @@ -37,5 +46,25 @@ jobs:
- name: Run tests
run: cargo test --verbose

- name: Run coverage
- name: Run tarpaulin
run: cargo tarpaulin --verbose

audit:
runs-on: ubuntu-latest
name: Cargo udeps and audit
needs: linter

steps:
- uses: actions/checkout@v4

- name: Install cargo-udeps
run: cargo install cargo-udeps@${{ env.UDEPS_VERSION }} --locked

- name: Install cargo-audit
run: cargo install cargo-audit@${{ env.AUDIT_VERSION }} --locked

- name: Run cargo udeps
run: cargo +nightly udeps --verbose

- name: Run cargo audit
run: cargo audit