Skip to content

Commit abfd0bb

Browse files
committed
fix and simplify CI
1 parent c09ca4a commit abfd0bb

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
- name: Update Cargo.lock
3131
run: cargo --config 'resolver.incompatible-rust-versions="fallback"' update
3232
- name: Check Clippy lints (reqwest)
33-
run: cargo clippy --manifest-path influxdb/Cargo.toml --all-targets --no-default-features --features chrono,time,serde,derive,reqwest-client-rustls -- -D warnings
33+
run: cargo clippy --manifest-path influxdb/Cargo.toml --locked --all-targets --no-default-features --features chrono,time,serde,derive,reqwest-client-rustls -- -D warnings
3434
- name: Check Clippy lints (surf)
35-
run: cargo clippy --manifest-path influxdb/Cargo.toml --all-targets --no-default-features --features chrono,time,serde,derive,hyper-client -- -D warnings
35+
run: cargo clippy --manifest-path influxdb/Cargo.toml --locked --all-targets --no-default-features --features chrono,time,serde,derive,hyper-client -- -D warnings
3636

3737
# this checks that the code is formatted with rustfmt
3838
rustfmt:
@@ -167,21 +167,13 @@ jobs:
167167
target
168168
key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
169169
- name: Run tests
170-
env:
171-
HTTP_BACKEND: ${{ matrix.http-backend }}
172170
run: |
173-
set -euo pipefail
174-
175-
FEATURES="serde derive chrono time ${HTTP_BACKEND}"
176-
177-
for test in integration_tests{,_v2}
178-
do
179-
cargo test -p influxdb \
180-
--no-default-features \
181-
--features "$FEATURES" \
182-
--no-fail-fast \
183-
--test "$test"
184-
done
171+
cargo test -p influxdb \
172+
--no-default-features \
173+
--features "serde derive chrono time ${{matrix.http-backend}}" \
174+
--no-fail-fast \
175+
--test integration_tests
176+
--test integration_tests_v2
185177
186178
# this uses cargo-tarpaulin to inspect the code coverage
187179
coverage:

0 commit comments

Comments
 (0)