Skip to content

Commit 017409b

Browse files
authored
ci: run fmt check first and test all-features to avoid recompilation for clippy (#976)
1 parent a78af9c commit 017409b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,17 @@ jobs:
158158
echo "sccache not in devshell; skipping wrapper."
159159
fi
160160
161+
- name: Formatting
162+
run: nix develop -c bash -c "cargo fmt --check"
163+
161164
- name: Build
162-
run: nix develop -c bash -c "cargo build --locked --profile=release"
165+
run: nix develop -c bash -c "cargo build --locked --release"
163166

164167
- name: Test
165-
run: nix develop -c bash -c "cargo test --locked --profile=release --features=runtime-benchmarks"
168+
run: nix develop -c bash -c "cargo test --locked --release --all-features"
166169

167170
- name: Lint
168-
run: nix develop -c bash -c "RUSTFLAGS=-Dwarnings cargo clippy --all-targets --all-features"
169-
170-
- name: Formatting
171-
run: nix develop -c bash -c "cargo fmt --check"
171+
run: nix develop -c bash -c "RUSTFLAGS=-Dwarnings cargo clippy --locked --release --all-features"
172172

173173
- name: sccache stats
174174
if: always()
@@ -899,17 +899,17 @@ jobs:
899899
echo "sccache not in devshell; skipping wrapper."
900900
fi
901901
902+
- name: Formatting
903+
run: nix develop -c bash -c "cargo fmt --check"
904+
902905
- name: Build
903-
run: nix develop -c bash -c "cargo build --locked --profile=release"
906+
run: nix develop -c bash -c "cargo build --locked --release"
904907

905908
- name: Test
906-
run: nix develop -c bash -c "cargo test --locked --profile=release --features=runtime-benchmarks"
909+
run: nix develop -c bash -c "cargo test --locked --release --all-features"
907910

908911
- name: Lint
909-
run: nix develop -c bash -c "RUSTFLAGS=-Dwarnings cargo clippy --all-targets --all-features"
910-
911-
- name: Formatting
912-
run: nix develop -c bash -c "cargo fmt --check"
912+
run: nix develop -c bash -c "RUSTFLAGS=-Dwarnings cargo clippy --locked --release --all-features"
913913

914914
- name: sccache stats
915915
if: always()

0 commit comments

Comments
 (0)