Bump github.com/gookit/goutil from 0.6.11 to 0.6.14 #23
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: Unit-Tests | |
on: | |
push: | |
paths: | |
- 'go.mod' | |
- '**.go' | |
jobs: | |
test: | |
name: Test on go ${{ matrix.go_version }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
go_version: [1.18, 1.19, '1.20'] | |
os: [ubuntu-latest] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
# https://github.com/actions/setup-go | |
- name: Use Go ${{ matrix.go_version }} | |
timeout-minutes: 3 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go_version }} | |
- name: Run unit tests | |
# run: go test -v -cover ./... | |
# must add " for profile.cov on windows OS | |
run: go test -coverprofile="profile.cov" ./... | |
- name: Send coverage | |
uses: shogo82148/[email protected] | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
path-to-profile: profile.cov | |
flag-name: Go-${{ matrix.go_version }} | |
parallel: true | |
# notifies that all test jobs are finished. | |
# https://github.com/shogo82148/actions-goveralls | |
finish: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shogo82148/[email protected] | |
with: | |
parallel-finished: true |