Skip to content

ci(build): add codecov (#518) #953

ci(build): add codecov (#518)

ci(build): add codecov (#518) #953

Workflow file for this run

name: Build
on:
push:
branches:
- main
- beta
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
name: Build
permissions:
contents: read
id-token: write # OIDC with Codecov
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go 1.23
uses: actions/setup-go@v5
with:
go-version: ^1.23
cache-dependency-path: go.sum
- name: Build
run: go build -v .
- name: Test
run: go test -v -race -covermode atomic -coverprofile coverage.txt ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
use_oidc: true