-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (34 loc) · 881 Bytes
/
test.yml
File metadata and controls
39 lines (34 loc) · 881 Bytes
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
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm, macos-15, macos-15-intel]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-test-1
- name: Run Tests
run: cargo test
aggregate:
name: test:required
if: ${{ always() }}
runs-on: ubuntu-latest
needs: [test]
steps:
- name: check result
if: ${{ needs.test.result != 'success' }}
run: exit 1