|
30 | 30 | - name: Update Cargo.lock
|
31 | 31 | run: cargo --config 'resolver.incompatible-rust-versions="fallback"' update
|
32 | 32 | - 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 |
34 | 34 | - 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 |
36 | 36 |
|
37 | 37 | # this checks that the code is formatted with rustfmt
|
38 | 38 | rustfmt:
|
@@ -167,21 +167,13 @@ jobs:
|
167 | 167 | target
|
168 | 168 | key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
|
169 | 169 | - name: Run tests
|
170 |
| - env: |
171 |
| - HTTP_BACKEND: ${{ matrix.http-backend }} |
172 | 170 | 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 |
185 | 177 |
|
186 | 178 | # this uses cargo-tarpaulin to inspect the code coverage
|
187 | 179 | coverage:
|
|
0 commit comments