-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.12 KB
/
ci.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
push:
paths:
- "**/*.go"
- ".github/workflows/ci.yaml"
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/[email protected]
- name: Setup Go
uses: actions/[email protected]
with:
go-version-file: ./go.mod
cache-dependency-path: ./go.sum
- name: Download Go modules
shell: bash
if: ${{ steps.setup-go.outputs.cache-hit != 'true' }}
run: |
go mod download
go mod verify
- name: Test
run: make FLAGS="-coverprofile=coverage.out" test
- name: Build
run: make build
- uses: jandelgado/[email protected]
with:
infile: coverage.out
outfile: coverage.lcov
version: v1.0.6
- name: Report coverage to CodeClimate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/coverage.lcov:lcov
verifyDownload: true