Merge pull request #189 from Songmu/tagpr-from-v1.4.3 #512
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: test | |
on: | |
pull_request: | |
branches: | |
- "**" | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
steps: | |
- name: setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.x | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: test | |
run: go test -race -coverprofile coverage.out -covermode atomic ./... | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Send coverage | |
uses: codecov/codecov-action@v1 |