fix macOS ci use apple silicon #310
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: Calculate Code Coverage | |
on: | |
push: | |
paths-ignore: | |
- "Changelog.md" | |
- "README.md" | |
pull_request: | |
jobs: | |
coverage: | |
name: coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: mod tidy | |
run: go mod tidy | |
- name: generate code coverage report | |
run: bash .ci/generate_coverage.sh | |
- name: upload code coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./v3/coverage.txt | |
name: go-sdk code coverage | |
fail_ci_if_error: true |