Skip to content

Commit ec47c21

Browse files
committed
chore(ci): run separate tests for each service in isolation
1 parent 9ef08b4 commit ec47c21

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [push, pull_request]
33

44
jobs:
55
test:
6-
name: Unit tests on ${{ matrix.rust }} ${{ matrix.flags}}
6+
name: Unit tests on ${{ matrix.rust }} ${{ matrix.flags }}
77
runs-on: ubuntu-latest
88
strategy:
99
fail-fast: false
@@ -12,7 +12,6 @@ jobs:
1212
flags:
1313
- ""
1414
- "--no-default-features"
15-
- "--no-default-features --features rustls"
1615
steps:
1716
- uses: actions/checkout@master
1817
- name: Install Rust
@@ -22,6 +21,30 @@ jobs:
2221
- name: Run unit tests
2322
run: cargo test --lib --verbose ${{ matrix.flags }}
2423

24+
features:
25+
name: Unit tests for ${{ matrix.features }}
26+
runs-on: ubuntu-latest
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
features:
31+
- "rustls"
32+
- "baremetal"
33+
- "block-storage"
34+
- "compute"
35+
- "identity"
36+
- "image"
37+
- "network"
38+
- "object-storage"
39+
steps:
40+
- uses: actions/checkout@master
41+
- name: Install Rust
42+
run: |
43+
rustup update stable --no-self-update
44+
rustup default stable
45+
- name: Run unit tests
46+
run: cargo test --lib --verbose --no-default-features --features ${{ matrix.features }}
47+
2548
rustfmt:
2649
name: Formatting
2750
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)