fix: timeout setting #19
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: Run unittests | |
on: | |
push: | |
pull_request: | |
types: [synchronize] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '>=1.13.0' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Run unittests and generate coverage report | |
run: go test -timeout 2m -coverprofile="cover.out" -covermode=atomic | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
name: boomer # User defined upload name. Visible in Codecov UI | |
file: ./cover.out # Path to coverage file to upload | |
flags: unittests # Flag upload to group coverage metrics | |
verbose: true |