Skip to content

Commit 8b9f8fd

Browse files
committed
Fix CI commands
1 parent b920d39 commit 8b9f8fd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/checks.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ env:
2424
RUST_LOG: debug
2525
CARGO_TERM_COLOR: always
2626
MSRV: 1.85.0
27-
HACK: hack --package neo4rs --each-feature --exclude-features unstable-serde-packstream-format,unstable-bolt-protocol-impl-v2,unstable-result-summary
27+
HACK_OPTS: --each-feature --exclude-features unstable-serde-packstream-format,unstable-bolt-protocol-impl-v2,unstable-result-summary
28+
HACK: hack --package neo4rs ${{ env.HACK_OPTS }}
2829

2930
jobs:
3031
fmt:
@@ -75,7 +76,7 @@ jobs:
7576
run: cp ci/Cargo.lock.msrv Cargo.lock
7677

7778
- name: Run clippy
78-
run: cargo +$MSRV --locked ${{ env.HACK }} clippy -- -D warnings
79+
run: cargo +${{ env.MSRV }} --locked ${{ env.HACK }} clippy -- -D warnings
7980

8081
unit-tests:
8182
name: Run unit tests
@@ -109,7 +110,7 @@ jobs:
109110
run: cp ci/Cargo.lock.msrv Cargo.lock
110111

111112
- name: Run unit tests
112-
run: cargo +$MSRV --locked ${{ env.HACK }} nextest run --lib
113+
run: cargo +${{ env.MSRV }} --locked ${{ env.HACK }} nextest run --lib
113114

114115
integration-tests:
115116
name: Run integration tests
@@ -153,7 +154,7 @@ jobs:
153154
uses: taiki-e/install-action@nextest
154155

155156
- name: Run integration tests
156-
run: cargo {{ env.HACK }} nextest run -E 'kind(test)'
157+
run: cargo hack ${{ env.HACK_OPTS }} nextest --manifest-path './integrationtests/Cargo.toml' run -E 'kind(test)'
157158

158159
min_dep:
159160
name: Validate minimal dependency versions
@@ -178,7 +179,7 @@ jobs:
178179
run: cp ci/Cargo.lock.min Cargo.lock
179180

180181
- name: Run minimal dependency versions unit tests
181-
run: cargo +$MSRV nextest --package neo4rs run --lib --all-features --locked
182+
run: cargo +${{ env.MSRV }} nextest run --package neo4rs --lib --all-features --locked
182183

183184
release:
184185
name: Release

0 commit comments

Comments
 (0)