-
Notifications
You must be signed in to change notification settings - Fork 2.8k
38 lines (34 loc) · 1.19 KB
/
ci.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
# Quickstart for GitHub Actions
# https://docs.github.com/en/actions/quickstart
name: CI
on: [ push, pull_request, workflow_dispatch ]
jobs:
test:
runs-on: ${{ fromJSON(matrix.os_deps).os }}
timeout-minutes: 5
strategy:
matrix:
os_deps:
- |
{"os": "ubuntu-latest"}
- |
{"os": "macos-11"}
- |
{"os": "macos-11", "deps": ["coreutils", "gnu-sed"]}
- |
{"os": "macos-latest"}
- |
{"os": "macos-latest", "deps": ["coreutils", "gnu-sed"]}
fail-fast: false
max-parallel: 64
name: Test on ${{ matrix.os_deps }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
# https://github.com/orgs/community/discussions/27125#discussioncomment-3254720
- run: brew install ${{ join(fromJSON(matrix.os_deps).deps, ' ') }}
# https://docs.github.com/en/actions/learn-github-actions/variables#detecting-the-operating-system
# https://docs.github.com/en/actions/learn-github-actions/expressions
if: runner.os == 'macOS' && fromJSON(matrix.os_deps).deps[0] != null
- run: test-cases/integration-test.sh