-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (38 loc) · 1.01 KB
/
cargo-test.yml
File metadata and controls
42 lines (38 loc) · 1.01 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
name: Cargo Test
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
build_and_test:
name: Run tests
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
coverage: true
steps:
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run cargo test
shell: bash
env:
MUSE2_TEST_OUTPUT_DIR: test_results
run: |
mkdir $MUSE2_TEST_OUTPUT_DIR
cargo test --verbose --no-fail-fast
# Upload regression test results for analysis
- uses: actions/upload-artifact@v7
if: "!cancelled()"
with:
name: muse2_test_results_${{ matrix.os }}
path: test_results
- if: ${{ matrix.coverage }}
uses: ./.github/actions/codecov
with:
token: ${{ secrets.CODECOV_TOKEN }}