diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ae47958..f25dfba 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -65,10 +65,11 @@ jobs: tests: name: Run tests - runs-on: ubuntu-22.04 + runs-on: ${{ matrix.os }} strategy: matrix: benchmarks: [ 'GoSingle10wrk', 'SharpSingle10wrk', 'MixedFourNodesGoRPC50rate' ] + os: [ ubuntu-22.04, macos-14] fail-fast: false steps: - uses: actions/checkout@v4 @@ -81,6 +82,16 @@ jobs: go-version-file: 'cmd/go.mod' cache-dependency-path: cmd/go.sum + # https://github.com/abiosoft/colima/issues/468 + - name: Use colima as default docker host on MacOS + if: matrix.os == 'macos-14' + run: | + brew install docker + colima start + ls -la $HOME/.colima/default/docker.sock + sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock + ls -la /var/run/docker.sock + - name: Build Bench, GoNode and SharpNode docker images run: make build