-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.19 KB
/
continuous-integration.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
39
40
41
42
name: 'Continuous Integration'
on:
- workflow_dispatch
- push
jobs:
run-testsuite:
strategy:
matrix:
os: ['ubuntu', 'macos-11', 'macos-12', 'macos-13']
runs-on: '${{ matrix.os }}'
name: 'Run Testsuite'
steps:
- uses: actions/checkout@v3
- name: 'Run testsuite'
run: development/testsuite
install-macports:
strategy:
matrix:
os: ['macos-11', 'macos-12', 'macos-13']
version: ['2.8.1']
prefix: ['/opt/local']
runs-on: '${{ matrix.os }}'
name: 'Install MacPorts'
needs: 'run-testsuite'
steps:
- uses: actions/checkout@v3
- uses: ./
id: 'macports'
with:
parameters: 'testsuite/run-testsuite-on-${{ matrix.os }}.yaml'
- name: 'Validate installed MacPorts version'
run: >-
test "$(port version)" = 'Version: ${{ matrix.version }}'
- name: 'Validate transmitted MacPorts prefix'
run: >-
test "${{ steps.macports.outputs.prefix }}" = '${{ matrix.prefix }}'
- name: 'Validate transmitted MacPorts version'
run: >-
test "${{ steps.macports.outputs.version }}" = '${{ matrix.version }}'
- run: port version