Skip to content

refactor(workflow): extract method and cleanup #4224

refactor(workflow): extract method and cleanup

refactor(workflow): extract method and cleanup #4224

Workflow file for this run

name: Coverage
on: [push, pull_request]
jobs:
codecov:
name: codecov
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Load .env file
uses: cardinalby/export-env-action@v2
with:
envFile: .env
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GOLANG_VERSION }}
- uses: actions/checkout@v4
- name: Generate coverage report
run: |
go test -race ./... -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage report
uses: codecov/codecov-action@v2
with:
file: ./coverage.txt
flags: unittests
name: codecov-umbrella