Skip to content

Update from upstream #21

Update from upstream

Update from upstream #21

Workflow file for this run

name: CI Build & Test with coverage
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21.0
- name: Build
run: go build -v ./...
- name: Test & Coverage
run: go test -v ./... -race -covermode=atomic -coverprofile=coverage.out
- name: Upload coverage reports to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}