Bump golang.org/x/sync from 0.9.0 to 0.10.0 #152
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: Test | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go-version: [ '1.22.x' ] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- | |
name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- | |
name: Tests | |
run: | | |
go mod tidy | |
go get github.com/axw/gocov/gocov | |
go get github.com/AlekSi/gocov-xml | |
go install github.com/axw/gocov/gocov | |
go install github.com/AlekSi/gocov-xml | |
go test -cover -v -failfast -p 1 $(go list ./...) -coverprofile cover.out | |
gocov convert cover.out | gocov-xml > coverage.xml | |
- | |
name: Codacy Coverage Reporter | |
uses: codacy/codacy-coverage-reporter-action@v1.3.0 | |
with: | |
coverage-reports: coverage.xml | |
if: runner.os != 'Windows' | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} |