From 2cb2b62c3be3656e5bf77ac7c604053028b13409 Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Thu, 4 Jul 2024 12:00:47 +0100 Subject: [PATCH] chore(ci): add MacOS runners x86_64/arm64 --- .github/workflows/test.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07eb2635d..596692af8 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() }}