Skip to content

Commit

Permalink
Init workflows static-analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
s-damian committed May 6, 2024
1 parent ff71f1b commit 5cedc1d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Static analysis

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
clippy:
name: Run Clippy
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: clippy

- name: Run Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets -- -D warnings
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
toolchain: stable
default: true
profile: minimal # minimal installation, only the components necessary for compilation will be installed
profile: minimal
override: true

- name: Cache Cargo dependencies
Expand Down

0 comments on commit 5cedc1d

Please sign in to comment.