diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 73f0c926a..9edbb7cc6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,7 +17,11 @@ jobs: checks: write # to create a new check based on the results (shogo82148/actions-goveralls) name: Build - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + # tests for target OS + os: [ubuntu-latest, macos-latest] steps: - name: Check out code into the Go module directory @@ -38,7 +42,7 @@ jobs: run: | apt update apt install -y make gcc libc-dev git - if: github.actor == 'nektos/act' + if: github.actor == 'nektos/act' && matrix.os == 'ubuntu-latest' - name: Test run: make test @@ -47,5 +51,5 @@ jobs: uses: shogo82148/actions-goveralls@v1 with: path-to-profile: profile.cov - if: github.actor != 'nektos/act' + if: github.actor != 'nektos/act' && matrix.os == 'ubuntu-latest' continue-on-error: true