mirror of
https://github.com/katanemo/plano.git
synced 2026-06-08 14:55:14 +02:00
Merge pull request #4 from katanemo/2-create-static-analysis-github-action
add checks on pr to ensure code compiles and passes static analysis checks.
This commit is contained in:
commit
0370fac840
1 changed files with 27 additions and 0 deletions
27
.github/workflows/static-analysis.yml
vendored
Normal file
27
.github/workflows/static-analysis.yml
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
name: Static Analysis
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup | Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup | Rust
|
||||
run: rustup toolchain install stable --profile minimal
|
||||
- name: Run Clippy
|
||||
run: cd envoyfilter && cargo clippy --all-targets --all-features -- -Dwarnings
|
||||
|
||||
format:
|
||||
name: Rustfmt
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Setup | Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup | Rust
|
||||
run: rustup toolchain install stable --profile minimal
|
||||
- name: Run Rustfmt
|
||||
run: cd envoyfilter && cargo fmt --all -- --check
|
||||
Loading…
Add table
Add a link
Reference in a new issue