-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (36 loc) · 1.24 KB
/
test.yaml
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
# Run tests
on:
push:
branches: [master, staging, trying]
pull_request:
merge_group:
name: Run tests
jobs:
test:
name: Rust
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- uses: ./.github/actions/setup
# Test monitor separately as the build needs to happen separately due to conflict of probe-rs with probe-rs-test
- name: cargo test monitor
run: cargo test --all-features -p monitor
- name: cargo test others
run: cargo test --workspace --all-features --exclude monitor --exclude hive --exclude controller --no-fail-fast # excluding controller for now due to optional probe-rs deps not making it possible to build (tracking issue: https://github.com/rust-lang/cargo/issues/2911)
# Special test-case hive CLI, which needs to build/run on win, linux and mac
test-hive-cli:
name: Rust (hive CLI)
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: cargo test hive
run: cargo test --all-features -p hive