Skip to content

Commit b7d523d

Browse files
committed
ci: test against macos
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
1 parent a108bb4 commit b7d523d

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,32 @@ jobs:
8282
uses: fsfe/reuse-action@3ae3c6bdf1257ab19397fab11fd3312144692083 # v4.0.0
8383
test:
8484
name: Test
85-
runs-on: ubuntu-24.04
85+
runs-on: ${{ matrix.os }}
8686
timeout-minutes: 30
8787
strategy:
8888
fail-fast: false
8989
matrix:
90+
include:
91+
- os: macos-13
92+
node-version: 22
93+
db2-version: :11.5.9.0@sha256:77095d4e04cf4448c0257086afcb2c166193d718dc33441da3b949f97e21efd5
94+
os:
95+
- ubuntu-24.04
9096
node-version:
9197
- 16
9298
- 18
9399
- 20
94100
- 22
95101
db2-version:
96-
- ':11.5.9.0@sha256:77095d4e04cf4448c0257086afcb2c166193d718dc33441da3b949f97e21efd5'
102+
- :11.5.9.0@sha256:77095d4e04cf4448c0257086afcb2c166193d718dc33441da3b949f97e21efd5
97103
steps:
98104
- name: Harden runner
99105
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
100106
with:
101107
egress-policy: audit
108+
- name: Setup Docker (macOS)
109+
if: matrix.os == 'macos-13'
110+
uses: douglascamata/setup-docker-macos-action@8d5fa43892aed7eee4effcdea113fd53e4d4bf83 # v1-alpha.14
102111
- name: Checkout
103112
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
104113
with:
@@ -115,11 +124,14 @@ jobs:
115124
run: ./cicd/well-known/test-harness.sh
116125
cross-test:
117126
name: Cross-test
118-
runs-on: ubuntu-24.04
127+
runs-on: ${{ matrix.os }}
119128
timeout-minutes: 30
120129
strategy:
121130
fail-fast: false
122131
matrix:
132+
os:
133+
- ubuntu-24.04
134+
- macos-13
123135
node-version:
124136
- 18
125137
- 20
@@ -131,6 +143,9 @@ jobs:
131143
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
132144
with:
133145
egress-policy: audit
146+
- name: Setup Docker (macOS)
147+
if: matrix.os == 'macos-13'
148+
uses: douglascamata/setup-docker-macos-action@8d5fa43892aed7eee4effcdea113fd53e4d4bf83 # v1-alpha.14
134149
- name: Checkout
135150
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
136151
with:

0 commit comments

Comments
 (0)