-
Notifications
You must be signed in to change notification settings - Fork 68
42 lines (35 loc) · 896 Bytes
/
test.yml
File metadata and controls
42 lines (35 loc) · 896 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
40
41
42
name: Test Suite
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
test:
strategy:
matrix:
os: [ubuntu-22.04, macos-13]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Mason
uses: actions/checkout@v4
- name: Set up build environment (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential curl git
- name: Set up build environment (macOS)
if: runner.os == 'macOS'
run: |
brew install curl git
- name: Run test suite
run: |
cd test
./all.sh
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}
path: test/
retention-days: 7