Skip to content

Commit

Permalink
chore(ci): add MacOS runners x86_64/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jul 4, 2024
1 parent f3b61a7 commit 2cb2b62
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() }}

Expand Down

0 comments on commit 2cb2b62

Please sign in to comment.