-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 903 Bytes
/
ci.yml
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
name: Test CI
concurrency:
group: ${{ github.workflow }}#${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches:
- main
jobs:
ci:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - ${{ matrix.config.foo }}
strategy:
matrix:
os: [ macOS-11, ubuntu-20.04]
config:
- {"foo": "bar"}
- {"foo": "baz"}
include:
- os: ubuntu-22.04
config:
foo: "fish"
steps:
- name: filter step
id: run_on_this_platform
if: ${{ !github.event.pull_request.draft || matrix.os == 'ubuntu-20.04' }}
run: |
echo "${{ matrix.os }}"
echo "${{ matrix.config.foo }}"
- name: actual work
if: steps.run_on_this_platform.outcome == 'success'
run: |
echo "doing real work here."
sleep 60
echo "done"