forked from nats-io/prometheus-nats-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 745 Bytes
/
coverage.yaml
File metadata and controls
35 lines (29 loc) · 745 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
29
30
31
32
33
34
35
name: Test Coverage
on:
push:
branches:
- main
paths-ignore:
- '**.md'
jobs:
coverage:
name: Test Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Setup Goveralls
run: go install github.com/mattn/goveralls@v0.0.12
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
skip-pkg-cache: true
- name: Run Tests
run: make test-cov
- name: Run Coveralls
run: goveralls -coverprofile=collector.out,exporter.out -service=github
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}