[8.10](backport #3742) [CI] run MacOS 13 ARM unit tests only on main branch #6970
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macos | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- 8.* | |
jobs: | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: .go-version | |
- name: Install dependencies | |
run: go install github.com/magefile/mage | |
- name: Run build | |
run: mage build | |
- name: Run test | |
run: mage unitTest |