Skip to content

Commit

Permalink
merge: ci(test): use cargo nextest to speed up the test (crypto-crawl…
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Jul 8, 2022
2 parents bb609db + 22fb36a commit 3360e0a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[profile.default]
slow-timeout = { period = "60s", terminate-after = 2 }
fail-fast = false
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CI

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
name: Cargo build
Expand All @@ -16,9 +19,25 @@ jobs:
with:
command: build
args: --release --all-features

test:
name: Cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: taiki-e/install-action@nextest
- uses: actions-rs/cargo@v1
with:
command: nextest
args: run

doc-test:
name: Cargo doctest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand All @@ -28,6 +47,8 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
args: --doc

fmt:
name: Cargo fmt
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3360e0a

Please sign in to comment.