diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6adff3ee..f347f2844 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: 1.21.x, 1.22.x, ] - os: [ubuntu-latest] + os: [ubuntu-latest, macos-12, macos-14] runs-on: ${{ matrix.os }} steps: - name: Checkout code @@ -38,15 +38,24 @@ jobs: with: distribution: 'zulu' java-version: '17' + - if: matrix.os == 'macos-14' + run: brew install protobuf - name: Test + if: matrix.os == 'ubuntu-latest' run: APP_BRANCH=${APP_REF:11} DOCKER_GATEWAY_HOST=172.17.0.1 DOCKER_HOST_HTTP="http://172.17.0.1" make + - name: Test (unit) + if: matrix.os != 'ubuntu-latest' + run: make test + - name: Test (pact) + if: matrix.os != 'ubuntu-latest' + run: make pact_local - name: Install goveralls run: go install github.com/mattn/goveralls@latest - name: Send coverage run: goveralls -coverprofile=coverage.txt -service=github -parallel - uses: actions/upload-artifact@v4 with: - name: logs-${{ github.job }}-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.go-version }}.zip + name: logs-${{ github.job }}-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.go-version }}-${{ matrix.os }}.zip path: ~/.pact/plugins/**/plugin.log if: ${{ always() }}