ci: use nextest because cargo test sig sevs
This commit is contained in:
15
.github/workflows/rust.yaml
vendored
15
.github/workflows/rust.yaml
vendored
@@ -20,6 +20,11 @@ jobs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
|
- name: Install cargo-nextest
|
||||||
|
uses: baptiste0928/cargo-install@v1
|
||||||
|
with:
|
||||||
|
crate: cargo-nextest
|
||||||
|
locked: true
|
||||||
|
|
||||||
- name: Run cargo build
|
- name: Run cargo build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
@@ -35,19 +40,17 @@ jobs:
|
|||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
|
|
||||||
- name: Run cargo test
|
- name: Run cargo test
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
env:
|
env:
|
||||||
TEST_DB: REFERENCE
|
TEST_DB: REFERENCE
|
||||||
with:
|
run: |
|
||||||
command: test
|
cargo nextest run
|
||||||
|
|
||||||
- name: Run cargo test (with MongoDB)
|
- name: Run cargo test (with MongoDB)
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
env:
|
env:
|
||||||
TEST_DB: MONGODB
|
TEST_DB: MONGODB
|
||||||
MONGODB: mongodb://localhost
|
MONGODB: mongodb://localhost
|
||||||
with:
|
run: |
|
||||||
command: test
|
cargo nextest run
|
||||||
|
|
||||||
- name: Start API in background
|
- name: Start API in background
|
||||||
if: github.event_name != 'pull_request' && github.ref_name == 'master'
|
if: github.event_name != 'pull_request' && github.ref_name == 'master'
|
||||||
|
|||||||
Reference in New Issue
Block a user