Skip to content

don't fail the pipeline on codecov error #48

don't fail the pipeline on codecov error

don't fail the pipeline on codecov error #48

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
go_version: ['1.22']
os: [ubuntu-latest, windows-latest, macos-14]
steps:
- name: Set up Go ${{ matrix.go_version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go_version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get dependencies
run: |
go mod download
- name: Build
run: go build -v ./...
- name: Test
run: "go test -v -short -race -coverprofile='coverage.out' ./..."
shell: bash
- name: Code coverage
uses: codecov/codecov-action@v4
with:
env_vars: OS,GO
file: ./coverage.out
flags: unittests
fail_ci_if_error: false
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
continue-on-error: true