feat: make ruby useful #174
Workflow file for this run
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: Clippy analysis (Code Quality) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
# Runs on schedule at 1745 UTC every Tuesday | |
- cron: '45 17 * * 2' | |
jobs: | |
rust-clippy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
actions: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install rust | |
run: | | |
rustup set auto-self-update disable | |
rustup toolchain install stable --profile default | |
rustup show | |
- name: Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install required cargo packages for reporting format | |
run: cargo install clippy-sarif sarif-fmt | |
- name: Run rust-clippy | |
run: | | |
cargo clippy --all-features --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt | |
continue-on-error: true | |
- name: Upload analysis results to Github | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: rust-clippy-results.sarif | |
category: clippy | |
wait-for-processing: true | |
- name: Get client spec | |
uses: actions/checkout@v3 | |
with: | |
repository: Unleash/client-specification | |
ref: v4.3.1 | |
path: client-specification | |
- name: Run tests | |
run: | | |
cargo test |