move folder to correct spot and open correct directory in workflow

This commit is contained in:
Aayush 2024-07-15 11:29:56 -07:00
parent 28c582fbdc
commit b7273eab55

45
.github/workflows/checks.yml vendored Normal file
View file

@ -0,0 +1,45 @@
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:
- run: cd envoyfilter
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Rust
run: rustup toolchain install stable --profile minimal
- name: Run Check
run: cargo check --lib --bins --examples --all-features
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- run: cd envoyfilter
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Rust
run: rustup toolchain install stable --profile minimal
- name: Run Clippy
run: cargo clippy --all-targets --all-features
format:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- run: cd envoyfilter
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Rust
run: rustup toolchain install stable --profile minimal
- name: Setup | Install Rustfmt
run: rustup component add rustfmt
- name: Run Rustfmt
run: cargo fmt --all -- --check