12
12
name : README Format Check
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v4
15
+ - uses : actions/checkout@v5
16
16
- uses : docker://codeberg.org/msrd0/cargo-doc2readme:nightly
17
17
with :
18
18
entrypoint : cargo
@@ -23,23 +23,21 @@ jobs:
23
23
name : Style Check (clippy)
24
24
runs-on : ubuntu-latest
25
25
steps :
26
- - uses : actions/checkout@v4
26
+ - uses : actions/checkout@v5
27
27
28
28
with :
29
29
components : clippy
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 --locked --all-targets --no-default-features --features serde,derive,reqwest-client-rustls -- -D warnings
34
- - name : Check Clippy lints (surf)
35
- run : cargo clippy --manifest-path influxdb/Cargo.toml --locked --all-targets --no-default-features --features serde,derive,hyper-client -- -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
36
34
37
35
# this checks that the code is formatted with rustfmt
38
36
rustfmt :
39
37
name : Style Checks (rustfmt)
40
38
runs-on : ubuntu-latest
41
39
steps :
42
- - uses : actions/checkout@v4
40
+ - uses : actions/checkout@v5
43
41
- uses : dtolnay/rust-toolchain@nightly
44
42
with :
45
43
components : rustfmt
72
70
nightly : false
73
71
os : ubuntu-latest
74
72
steps :
75
- - uses : actions/checkout@v4
73
+ - uses : actions/checkout@v5
76
74
- uses : dtolnay/rust-toolchain@master
77
75
with :
78
76
toolchain : ${{matrix.rust.toolchain}}
@@ -108,8 +106,8 @@ jobs:
108
106
key : " ${{runner.os}} Rust ${{steps.msrv-toolchain.outputs.cachekey}}"
109
107
if : matrix.rust.name == 'MSRV'
110
108
# finally we can run tests
111
- - run : cargo test --lib --locked
112
- - run : cargo test --doc --locked
109
+ - run : cargo test --lib --locked --features 'chrono time serde derive'
110
+ - run : cargo test --doc --locked --features 'chrono time serde derive'
113
111
114
112
# this tests that all integration tests are successful
115
113
integration_tests :
@@ -124,10 +122,6 @@ jobs:
124
122
toolchain : stable
125
123
nightly : false
126
124
http-backend :
127
- - curl-client
128
- - h1-client
129
- - h1-client-rustls
130
- - hyper-client
131
125
- reqwest-client-rustls
132
126
- reqwest-client-native-tls
133
127
- reqwest-client-native-tls-vendored
@@ -158,7 +152,7 @@ jobs:
158
152
DOCKER_INFLUXDB_INIT_BUCKET : mydb
159
153
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN : admintoken
160
154
steps :
161
- - uses : actions/checkout@v4
155
+ - uses : actions/checkout@v5
162
156
- uses : dtolnay/rust-toolchain@master
163
157
with :
164
158
toolchain : ${{matrix.rust.toolchain}}
@@ -172,10 +166,12 @@ jobs:
172
166
key : " ${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
173
167
- name : Run tests
174
168
run : |
175
- for test in integration_tests{,_v2}
176
- do
177
- cargo test -p influxdb --no-default-features --features 'serde derive ${{matrix.http-backend}}' --no-fail-fast --test $test
178
- done
169
+ cargo test -p influxdb \
170
+ --no-default-features \
171
+ --features "serde derive chrono time ${{matrix.http-backend}}" \
172
+ --no-fail-fast \
173
+ --test integration_tests \
174
+ --test integration_tests_v2
179
175
180
176
# this uses cargo-tarpaulin to inspect the code coverage
181
177
coverage :
@@ -198,7 +194,7 @@ jobs:
198
194
INFLUXDB_USER_PASSWORD : password
199
195
200
196
steps :
201
- - uses : actions/checkout@v4
197
+ - uses : actions/checkout@v5
202
198
- uses : dtolnay/rust-toolchain@stable
203
199
id : rust-toolchain
204
200
- name : Get Tarpaulin Version
@@ -221,7 +217,7 @@ jobs:
221
217
cargo tarpaulin -v \
222
218
--target-dir target/tarpaulin \
223
219
--workspace \
224
- --features serde,derive \
220
+ --features chrono,time, serde,derive \
225
221
--exclude-files 'derive/*' \
226
222
--exclude-files 'target/*' \
227
223
--ignore-panics --ignore-tests \
@@ -243,10 +239,10 @@ jobs:
243
239
- coverage
244
240
if : github.ref == 'refs/heads/main'
245
241
steps :
246
- - uses : actions/checkout@v4
242
+ - uses : actions/checkout@v5
247
243
with :
248
244
ref : gh-pages
249
- - uses : actions/download-artifact@v4
245
+ - uses : actions/download-artifact@v5
250
246
with :
251
247
name : tarpaulin-report
252
248
- run : |
@@ -256,6 +252,6 @@ jobs:
256
252
257
253
git add coverage.svg tarpaulin-report.html
258
254
git status
259
- - uses : stefanzweifel/git-auto-commit-action@v5
255
+ - uses : stefanzweifel/git-auto-commit-action@v6
260
256
with :
261
257
commit_message : " GitHub Pages for ${{ github.sha }}"
0 commit comments