Add formatting check and fail on clippy warnings
All checks were successful
Build Crate / build (push) Successful in 1m35s
All checks were successful
Build Crate / build (push) Successful in 1m35s
This commit is contained in:
8
.github/workflows/github-actions-demo.yml
vendored
8
.github/workflows/github-actions-demo.yml
vendored
@@ -46,6 +46,10 @@ jobs:
|
||||
- name: Build the project
|
||||
run: perseus --wasm-opt-version version_118 deploy --verbose
|
||||
- name: Run clippy for server
|
||||
run: RUSTFLAGS="--cfg=engine" cargo clippy --all
|
||||
run: RUSTFLAGS="--cfg=engine" cargo clippy --all -- -D warnings
|
||||
continue-on-error: true
|
||||
- name: Run clippy for frontend
|
||||
run: RUSTFLAGS="--cfg=client" cargo clippy --all
|
||||
run: RUSTFLAGS="--cfg=client" cargo clippy --all -- -D warnings
|
||||
continue-on-error: true
|
||||
- name: Check for formatting issues
|
||||
run: cargo fmt --check
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
pub mod routes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user