mirror of
https://github.com/katanemo/plano.git
synced 2026-06-29 15:49:40 +02:00
add in static-analysis checks as well as cargo check to ensure that the code compiles
This commit is contained in:
parent
d3ddbd8545
commit
596096f7dd
1 changed files with 34 additions and 0 deletions
34
envoyfilter/.github/workflows/checks.yml
vendored
Normal file
34
envoyfilter/.github/workflows/checks.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: Static Analysis
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Check and Linting are seperate jobs because linting does not fail
|
||||||
|
#when there are errors outside of the changed files in the pr
|
||||||
|
check:
|
||||||
|
name: Check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setup | Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Run Check
|
||||||
|
run: cargo check --lib --bins --examples --all-features
|
||||||
|
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setup | Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Run Clippy
|
||||||
|
run: cargo clippy --all-targets --all-features
|
||||||
|
|
||||||
|
format:
|
||||||
|
name: Rustfmt
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Setup | Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Run Rustfmt
|
||||||
|
run: cargo fmt --all -- --check
|
||||||
Loading…
Add table
Add a link
Reference in a new issue