-
Notifications
You must be signed in to change notification settings - Fork 24
46 lines (37 loc) · 846 Bytes
/
makefile.yml
File metadata and controls
46 lines (37 loc) · 846 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
36
37
38
39
40
41
42
43
44
45
46
name: Makefile CI
on:
push:
branches:
- main
- 'v[0-9].[0-9]+.[0-9]+'
- 'v[0-9].[0-9]+'
pull_request:
branches:
- main
- 'v[0-9].[0-9]+.[0-9]+'
- 'v[0-9].[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run golangci-lint
run: make golangci
- name: Run code-generator
run: make generated
- name: Run build
run: make build
- name: Run test
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./.coverage/coverage-unit.out
flags: unit-tests
name: codecov-unit-test