-
-
Notifications
You must be signed in to change notification settings - Fork 178
34 lines (34 loc) · 889 Bytes
/
ci.yml
File metadata and controls
34 lines (34 loc) · 889 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
name: Lint and Test
on: push
jobs:
all:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: 1.26.x
check-latest: true
cache: true
cache-dependency-path: |
**/go.sum
internal/tools/go.sum
- name: Lint
run: make lint
- name: Make Docker images
run: make docker
- name: Test
run: make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
gcov_ignore: "**/*.gen.go"
- name: Upload coverage artifact
uses: actions/upload-artifact@v7
with:
name: code-coverage
path: coverage.html