-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 908 Bytes
/
ci.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
35
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.20"
- name: Running unit tests
run: go test -v ./...
- name: Prepare reports directory
run: mkdir -p reports
- name: Calc coverage
run: go test -v ./... -covermode=count -coverprofile=reports/coverage.out
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1
with:
infile: reports/coverage.out
outfile: reports/coverage.lcov
- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: reports/coverage.lcov