with commit 7f1f93d the default timeout was changed from 200ms to 10s… #326
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: | |
push: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ['1.19', '1.20'] | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- uses: actions/checkout@v3 | |
- name: Get dependencies | |
run: | | |
go get golang.org/x/tools/cmd/cover | |
go get github.com/mattn/goveralls | |
- name: Test | |
run: go test -race -v -covermode=atomic -coverprofile=coverage.out | |
- name: Send coverage | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-profile: coverage.out | |
flag-name: Go-${{ matrix.go }} | |
parallel: true | |
# notifies that all test jobs are finished. | |
finish: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shogo82148/actions-goveralls@v1 | |
with: | |
parallel-finished: true |