Skip to content

Potential fixes for 4 code quality findings #32

Potential fixes for 4 code quality findings

Potential fixes for 4 code quality findings #32

Workflow file for this run

name: Cargo hack
permissions:
contents: read
concurrency:
group: cargo-hack-${{ (github.ref == 'refs/heads/master' && github.sha) || (github.event_name == 'pull_request' && github.head_ref) || github.ref }}
cancel-in-progress: false
on:
workflow_dispatch:
pull_request:
# this file is used to test all feature combinations using cargo-hack
# but only specific conditions to avoid overloading CI on every push/PR
# since this CI takes a very long time
jobs:
cargo-hack-all-features:
if: |
startsWith(github.base_ref, 'release-plz-') ||
contains(join(github.event.pull_request.changed_files, ','), '.github/workflows/cargo_hack.yml')
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: target
key: ${{ runner.os }}-rust-cargo-hack-${{ hashFiles('Cargo.toml') }}
- run: cargo hack test --feature-powerset --all-targets --exclude-features _bzip2_any,_arbitrary,_deflate-any,_all-features