Skip to content

Promote from BLAIS5-5161-b to main #186

Promote from BLAIS5-5161-b to main

Promote from BLAIS5-5161-b to main #186

Workflow file for this run

name: Test and coverage
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/setup-go@v2
with:
go-version: '1.26'
- name: Run coverage
run: |
PKGS=$(go list ./... | grep -v /mocks/)
go test -race -coverprofile=coverage.out -covermode=atomic -coverpkg="$PKGS" $PKGS
- name: Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true