Skip to content

chore(deps): Bump actions/upload-artifact from 4.5.0 to 4.6.0 #369

chore(deps): Bump actions/upload-artifact from 4.5.0 to 4.6.0

chore(deps): Bump actions/upload-artifact from 4.5.0 to 4.6.0 #369

Workflow file for this run

name: Codecov
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v5
- name: Run coverage
run: go test ./... -cover -coverpkg ./... -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: coverage.out
path: coverage.out
retention-days: 1
if-no-files-found: error
upload-to-codecov:
needs:
- unit-tests
runs-on: ubuntu-latest
steps:
- name: Download coverage
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: coverage.out
- name: Upload Report to Codecov
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
files: ./coverage.out
fail_ci_if_error: true
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}