Skip to content

Commit

Permalink
Add a action workflow for test and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Themimitoof committed Aug 22, 2022
1 parent 50fcb0e commit 33be9c0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Go testing and coverage

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Run unit tests
run: go test -v ./... --cover -coverprofile coverage.out

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3

0 comments on commit 33be9c0

Please sign in to comment.