A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
1
# This workflow uses actions that are not certified by GitHub.2
# They are provided by a third-party and are governed by3
# separate terms of service, privacy policy, and support4
# documentation.5
# rust-clippy is a tool that runs a bunch of lints to catch common6
# mistakes in your Rust code and help improve your Rust code.7
# More details at https://github.com/rust-lang/rust-clippy8
# and https://rust-lang.github.io/rust-clippy/10
name: Analyze12
on:13
push:14
branches: [ "main" ]15
pull_request:16
# The branches below must be a subset of the branches above17
branches: [ "main" ]18
schedule:19
- cron: '30 8 * * 0'21
jobs:22
rust-clippy-analyze:23
name: Run rust-clippy analyzing24
runs-on: ubuntu-latest25
permissions:26
contents: read27
security-events: write28
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status29
steps:30
- name: Checkout code31
uses: actions/checkout@v233
- name: Install Rust toolchain34
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v135
with:36
profile: minimal37
toolchain: stable38
components: clippy39
override: true41
- name: Install required cargo42
run: cargo install clippy-sarif sarif-fmt44
- name: Run rust-clippy45
run:46
cargo clippy47
--all-features48
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt49
continue-on-error: true51
- name: Upload analysis results to GitHub52
uses: github/codeql-action/upload-sarif@v153
with:54
sarif_file: rust-clippy-results.sarif55
wait-for-processing: true