-
Notifications
You must be signed in to change notification settings - Fork 5
61 lines (47 loc) · 1.65 KB
/
Copy pathtests.yaml
File metadata and controls
61 lines (47 loc) · 1.65 KB
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
name: tests
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
tests:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Install Rust toolchain specified in rust-toolchain.toml.
- name: Install Rust toolchain
run: rustc --version
- name: Build mutest-json (without rustc options, as a public consumer)
run: cargo build -p mutest-json
- name: Build mutest-runtime
run: cargo build --release -p mutest-runtime
- name: Build mutest-runtime-embedded-target-stub and test-metadata-shim for host
run: |
cargo build --release -p test-metadata-shim
cargo build --release -p mutest-runtime-embedded-target-stub
- name: Build mutest-driver with runtime embedding
run: cargo build --release -p mutest-driver --features embed-runtime
- name: Install mutest-driver and cargo-mutest
run: |
cargo install --force --path mutest-driver
cargo install --force --path cargo-mutest
- name: Install mutest-inspector
run: cargo install --force --path mutest-inspector
- name: Run unit tests
run: |
cargo test -p cargo-mutest --no-fail-fast -- --color=always
cargo test -p mutest-runtime --no-fail-fast -- --color=always
cargo test -p mutest-inspector --no-fail-fast -- --color=always
- name: Run UI tests
run: cargo ui-test