Skip to content

ci: bump codecov/codecov-action from 6 to 7 (#26) #120

ci: bump codecov/codecov-action from 6 to 7 (#26)

ci: bump codecov/codecov-action from 6 to 7 (#26) #120

Workflow file for this run

name: check
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.26"
- name: Check formatting
run: test -z "$(gofmt -l *.go internal/)" || (echo "Files need formatting:" && gofmt -l *.go internal/ && exit 1)
- name: Vet
run: go vet ./...
- name: Test
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
files: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}