Skip to content

Commit

Permalink
ci: implement coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
inkeliz committed Aug 29, 2022
1 parent 859bf33 commit 62ee9e7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

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

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

- name: Unit tests
run: go test -v -coverprofile=cover.out -bench=. ./...

- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: cover.out

0 comments on commit 62ee9e7

Please sign in to comment.