Skip to content

Merge pull request #91 from crazy-max/update-codecov #194

Merge pull request #91 from crazy-max/update-codecov

Merge pull request #91 from crazy-max/update-codecov #194

Workflow file for this run

name: test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- 'master'
tags:
- 'v*'
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
test:
runs-on: ubuntu-latest
env:
GO111MODULE: on
strategy:
fail-fast: false
matrix:
go:
- "1.19"
- "1.20"
- "1.21"
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
cache: true
-
name: Test
run: |
go test -coverprofile=coverage.txt -covermode=atomic ./...
-
name: Upload coverage
uses: codecov/codecov-action@v4
with:
file: ./coverage.txt
token: ${{ secrets.CODECOV_TOKEN }}