Skip to content

Commit

Permalink
Switch to nextest (#55)
Browse files Browse the repository at this point in the history
* Switch daily-check to nextest

* Switch rest of the CI to nextest
  • Loading branch information
chevdor committed Aug 31, 2022
1 parent 876e9a4 commit 731a1b7
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[profile.default]
retries = 0

[[profile.default.overrides]]
filter = 'test(compress)'
retries = 3
12 changes: 10 additions & 2 deletions .github/workflows/daily-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:

jobs:
daily_check:
env:
CARGO_TERM_COLOR: always
strategy:
fail-fast: false
matrix:
Expand All @@ -33,6 +35,11 @@ jobs:
override: true
components: clippy, rustfmt

- name: Install Rust tooling
uses: taiki-e/install-action@v1
with:
tool: nextest

- uses: actions/checkout@v2

- name: Cargo fmt
Expand All @@ -47,10 +54,11 @@ jobs:
command: clippy
args: -- -D warnings

- name: Cargo test
- name: Cargo nextest
uses: actions-rs/cargo@v1
with:
command: test
command: nextest
args: run

- name: Cargo check
uses: actions-rs/cargo@v1
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/quick-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:

jobs:
quick_check:
env:
CARGO_TERM_COLOR: always
strategy:
matrix:
os: ["ubuntu-latest"]
Expand All @@ -26,6 +28,11 @@ jobs:
override: true
components: clippy, rustfmt

- name: Install Rust tooling
uses: taiki-e/install-action@v1
with:
tool: nextest

- name: Cache Dependencies & Build Outputs
uses: actions/cache@v2
with:
Expand All @@ -49,10 +56,11 @@ jobs:
command: clippy
args: -- -D warnings

- name: Cargo test
- name: Cargo nextest
uses: actions-rs/cargo@v1
with:
command: test
command: nextest
args: run

- name: Cargo check
uses: actions-rs/cargo@v1
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/weekly-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ on:
workflow_dispatch:

jobs:
daily_check:
weekly_check:
env:
CARGO_TERM_COLOR: always
strategy:
fail-fast: false
matrix:
Expand All @@ -33,6 +35,11 @@ jobs:
override: true
components: clippy, rustfmt

- name: Install Rust tooling
uses: taiki-e/install-action@v1
with:
tool: nextest

- uses: actions/checkout@v2

- name: Cargo fmt
Expand All @@ -47,10 +54,11 @@ jobs:
command: clippy
args: -- -D warnings

- name: Cargo test
- name: Cargo NEXtest
uses: actions-rs/cargo@v1
with:
command: test
command: nextest
args: run

- name: Cargo check
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 731a1b7

Please sign in to comment.