-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# CI workflow runs all source quality tests. It does not build the release binary. | ||
# | ||
name: SawfishCI | ||
|
||
on: | ||
push: | ||
branches: [ main, actions_test ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
qc: | ||
name: Sawfish source QC | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
CARGO_TERM_COLOR: always | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.84.0 | ||
components: clippy, rustfmt | ||
|
||
- name: Check source formatting | ||
run: cargo fmt --check | ||
|
||
- name: Build | ||
run: cargo build --verbose | ||
|
||
- name: Test | ||
run: cargo test --verbose | ||
|
||
- name: Clippy | ||
run: cargo clippy --verbose -- -D warnings | ||
|
||
- name: Clippy on tests | ||
run: cargo clippy --tests --verbose -- -D warnings |
This file was deleted.
Oops, something went wrong.