[TS-2040/] Fix panic and test failure caused by invalid TCLI_HOME index filesystem state #25
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
name: Check | |
on: | |
pull_request: | |
jobs: | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Restore cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- name: Install clippy-sarif | |
run: cargo install clippy-sarif sarif-fmt | |
- name: Run clippy | |
run: > | |
cargo clippy --workspace --all-features --all --message-format=json | |
| clippy-sarif | |
| tee clippy-results.sarif | |
| sarif-fmt | |
continue-on-error: true | |
- name: Upload and submit SARIF | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: clippy-results.sarif | |
wait-for-processing: true |