Skip to content

Commit

Permalink
Create code-coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sdqri authored Sep 7, 2024
1 parent 6b83efd commit fe2ffb3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test and coverage

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/setup-go@v2
with:
go-version: '1.23'
- name: Run coverage
run: go test -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

0 comments on commit fe2ffb3

Please sign in to comment.