Skip to content

Commit

Permalink
Merge pull request #23 from valbeat/feat/add_goveralls
Browse files Browse the repository at this point in the history
Create goveralls.yml
  • Loading branch information
valbeat committed Apr 24, 2024
2 parents 198d4bc + b3cdb40 commit 0c73c7e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/goveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Quality
on: [push, pull_request]
jobs:
test:
name: Test with Coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.x'
- name: Check out code
uses: actions/checkout@v2
- name: Install dependencies
run: |
go mod download
- name: Run Unit tests
run: |
go test -race -covermode atomic -coverprofile=covprofile ./...
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github

0 comments on commit 0c73c7e

Please sign in to comment.