Skip to content

Commit 72867a9

Browse files
committed
ci: add mac os to matrix tests
Signed-off-by: Boris Glimcher <[email protected]>
1 parent bfdf6b8 commit 72867a9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: test
33
on: [push, pull_request]
44
jobs:
55
build:
6-
runs-on: ubuntu-latest
6+
runs-on: macos-latest
77
strategy:
88
matrix:
99
go: [ '1.18', '1.19', '1.20', '1.21' ]
@@ -17,6 +17,18 @@ jobs:
1717
version: v1.13.0
1818
install-only: true
1919

20+
- name: Setup docker (missing on MacOS)
21+
if: contains(runner.os, 'macos')
22+
run: |
23+
brew install docker
24+
colima start
25+
26+
# See https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
27+
# - name: Set Docker socket on macOS
28+
# if: contains(matrix.os, 'macos')
29+
# run: |
30+
# echo DOCKER_HOST="unix://${HOME}/.colima/default/docker.sock" >> $GITHUB_ENV
31+
2032
- run: |
2133
go version
2234
go env

0 commit comments

Comments
 (0)