Skip to content

Commit

Permalink
ci: add mac os to matrix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed Oct 31, 2023
1 parent bfdf6b8 commit 72867a9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
runs-on: macos-latest
strategy:
matrix:
go: [ '1.18', '1.19', '1.20', '1.21' ]
Expand All @@ -17,6 +17,18 @@ jobs:
version: v1.13.0
install-only: true

- name: Setup docker (missing on MacOS)
if: contains(runner.os, 'macos')
run: |
brew install docker
colima start
# See https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
# - name: Set Docker socket on macOS
# if: contains(matrix.os, 'macos')
# run: |
# echo DOCKER_HOST="unix://${HOME}/.colima/default/docker.sock" >> $GITHUB_ENV

- run: |
go version
go env
Expand Down

0 comments on commit 72867a9

Please sign in to comment.