Skip to content

configure codecov token #25

configure codecov token

configure codecov token #25

Workflow file for this run

---
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.20.x, 1.21.x, 1.22.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- uses: actions/setup-go@v5
with:
go-version: "${{ matrix.go-version }}"
- run: go test -race -coverprofile=coverage -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
with:
files: coverage