Bonus: run the tests if we are compiling for clippy
This commit is contained in:
parent
6ba1ab9e44
commit
cadbde034b
1 changed files with 21 additions and 1 deletions
22
.github/workflows/rust-checks.yml
vendored
22
.github/workflows/rust-checks.yml
vendored
|
|
@ -11,7 +11,7 @@ env:
|
|||
|
||||
jobs:
|
||||
fmt:
|
||||
name: Rustfmt
|
||||
name: Formatting Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
@ -44,3 +44,23 @@ jobs:
|
|||
|
||||
- name: Run Clippy
|
||||
run: cargo clippy --all-targets --all-features -- -D warnings
|
||||
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y pkg-config libxkbcommon-dev libfontconfig1-dev libfreetype6-dev libglvnd-dev libinput-dev libvulkan-dev libwayland-dev libx11-dev libxcursor-dev libxi-dev libxrandr-dev libasound2-dev libdbus-1-dev
|
||||
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: clippy
|
||||
|
||||
- name: Run Tests
|
||||
run: cargo test --all-targets --all-features
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue