Skip to content

Commit

Permalink
Actions updates (#22)
Browse files Browse the repository at this point in the history
* Update codeql-action/upload-sarif to v3
* Add workflow dispatch to clippy and format
* Update clippy push branches
  • Loading branch information
a1ecbr0wn authored Jun 17, 2024
1 parent a229bb8 commit f901025
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ on:
- '**/src/*'
- '**/Cargo.*'
- '.github/workflows/build.yml'
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:

env:
RUSTFLAGS: '--deny warnings'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name: Rust Clippy Analyze
on:
push:
branches:
- main
- '**'
paths:
- '**/*.rs'
- 'src/*'
Expand All @@ -28,6 +28,7 @@ on:
- '.github/workflows/clippy.yml'
schedule:
- cron: '0 2 * * 1'
workflow_dispatch:

jobs:
rust-clippy-analyze:
Expand All @@ -54,7 +55,7 @@ jobs:
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true
11 changes: 11 additions & 0 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ on:
- 'src/*'
- 'Cargo.*'
- '.github/workflows/fmt.yml'
pull_request:
branches:
- main
paths:
- '**/*.rs'
- 'src/*'
- 'Cargo.*'
- '.github/workflows/fmt.yml'
schedule:
- cron: '0 1 * * 1'
workflow_dispatch:

jobs:
format:
Expand Down

0 comments on commit f901025

Please sign in to comment.