Updating Clippy workflow to treat warnings as errors #18
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
# .github/workflows/unsafe.yml | |
name: Unsafe Forbidden | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
unsafe_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install Clippy | |
run: rustup component add clippy | |
- name: Check for Unsafe Code | |
run: cargo clippy --all-targets --all-features -- --deny=unsafe_code |