Skip to content

update codecov workflow #13

update codecov workflow

update codecov workflow #13

Workflow file for this run

name: codecov
on:
push:
branches:
- main
pull_request:
types: [review_requested, ready_for_review]
jobs:
codecov:
timeout-minutes: 15
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: "1.22"
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get dependencies
run: go mod download
- name: Run tests with coverage
run: make test-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
fail_ci_if_error: true

Check failure on line 34 in .github/workflows/codecov.yaml

View workflow run for this annotation

GitHub Actions / codecov

Invalid workflow file

The workflow is not valid. .github/workflows/codecov.yaml (Line: 34, Col: 9): Unexpected value 'fail_ci_if_error' .github/workflows/codecov.yaml (Line: 35, Col: 9): Unexpected value 'token'
token: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./.testCoverage