Skip to content

Commit

Permalink
test: add goveralls Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbee committed Nov 4, 2024
1 parent d3e692b commit c582298
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Coverage

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

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Checkout
uses: actions/checkout@v4
- run: go test -v -coverprofile=profile.cov ./...
- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
5 changes: 3 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download Go dependencies
run: go mod download
Expand All @@ -32,3 +32,4 @@ jobs:

- name: Test
run: go test -v ./...

0 comments on commit c582298

Please sign in to comment.