Skip to content

Bump codecov/codecov-action from 4.1.0 to 4.6.0 #136

Bump codecov/codecov-action from 4.1.0 to 4.6.0

Bump codecov/codecov-action from 4.1.0 to 4.6.0 #136

Workflow file for this run

name: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
go-version: [stable, oldstable]
platform: [ubuntu-latest]
include:
# only update test coverage stats with most recent go version on linux
- go-version: stable
platform: ubuntu-latest
update-coverage: true
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Run go test
run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...
- name: Upload coverage to Codecov
if: ${{ matrix.update-coverage }}
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 #v4.6.0