-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (32 loc) · 871 Bytes
/
main.yml
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
29
30
31
32
33
34
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
name: tests
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: stable
- name: Checkout code
uses: actions/checkout@v3
- name: Calc coverage
run: >
go test
-coverpkg ../pkg/...
-covermode=count
-coverprofile=coverage.out
working-directory: go/test
- name: Convert coverage to lcov
uses: jandelgado/[email protected]
with:
working-directory: go/test
- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: go/test/coverage.lcov