-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.08 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
name: Run Tests
on: [push, workflow_dispatch]
jobs:
qualitycheck:
name: Quality Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
check-latest: true
- name: Lint code
uses: golangci/golangci-lint-action@v4
with:
version: "v1.56.2"
args: --verbose
- name: Audit code
run: |
make audit
test:
name: Test
needs: qualitycheck
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
check-latest: true
- name: Run tests
run: make test
- name: Generate coverage report
run: make test/cover
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: vwhitteron/gt-telemetry