Skip to content

Commit bc2b3ee

Browse files
ci: cargo nextest setup
1 parent d01b395 commit bc2b3ee

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.config/nextest.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[profile.default]
2+
no-tests = "pass"
3+
slow-timeout = { period = "60s", terminate-after = 2 }
4+
5+
[test-groups.serialized]
6+
max-threads = 1
7+
8+
#serialized tests
9+
[[profile.default.overrides]]
10+
filter = 'kind(test) | package(apollo_network) | package(apollo_l1_provider)'
11+
test-group = 'serialized'
12+
13+
# slow tests
14+
[[profile.default.overrides]]
15+
filter = 'none()'
16+
slow-timeout = { period = "120s", terminate-after = 2 }

.github/actions/install_rust/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
with:
1818
cache-base: main(-v[0-9].*)?
1919
inherit-toolchain: true
20-
bins: taplo-cli@0.9.3, cargo-machete
20+
bins: taplo-cli@0.9.3, cargo-machete, cargo-nextest@0.9.113
2121
# Install additional non-default toolchains (for rustfmt for example), NOP if input omitted.
2222
channel: ${{ inputs.extra_rust_toolchains }}
2323
env:

scripts/local_presubmit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ setup_env_variables_from_yml() {
7171

7272
install_dependencies() {
7373
# List of crate names to check/install
74-
CRATES=("taplo-cli" "cargo-machete")
74+
CRATES=("taplo-cli" "cargo-machete" "cargo-nextest")
7575

7676
# Get the list of installed crates
7777
INSTALLED_CRATES=$(cargo install --list | grep -Eo '^[^ ]+')

0 commit comments

Comments
 (0)