Skip to content

Commit

Permalink
Adding coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstinnett committed Jan 19, 2024
1 parent 7970faa commit ace1417
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Coverage

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
env:
TZ: "America/New_York"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Run coverage
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./coverage.txt
name: codecov-umbrella
verbose: true

0 comments on commit ace1417

Please sign in to comment.