-
-
Notifications
You must be signed in to change notification settings - Fork 6
28 lines (28 loc) · 731 Bytes
/
coverage.yml
File metadata and controls
28 lines (28 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Test coverage
on:
pull_request:
push:
branches:
- master
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.24'
- name: Checkout code
uses: actions/checkout@v3
- name: Run tests
run: go test -covermode atomic -coverprofile=profile.cov ./...
- name: Convert .cov to lcov
uses: jandelgado/gcov2lcov-action@v1.0.0
with:
infile: profile.cov
outfile: coverage.lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov