-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (49 loc) · 1.38 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Rust CI
on: [push, pull_request]
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
outputs:
cache-hit: ${{ steps.cache.outputs.cache-hit }}
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Build project
run: cargo build --release
- uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Run unit tests from root
run: cargo nextest run --release
integration-tests:
name: Integration tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./tests
outputs:
cache-hit: ${{ steps.cache.outputs.cache-hit }}
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run integration tests in `tests`
run: cd tests
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Build project
run: cargo build --release
- uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Run unit tests from root
run: cargo nextest run --release
- name: Run integration tests in `tests`
run:
TOKIO_WORKER_THREADS=1 cargo nextest run -j 1 --release