-
-
Notifications
You must be signed in to change notification settings - Fork 211
83 lines (72 loc) · 1.8 KB
/
makefile.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Makefile
on:
push:
paths:
- .github/workflows/makefile.yml
- Dockerfile
- Makefile
- "**.go"
- "go.*"
- "helpertest/data/**"
pull_request:
permissions:
security-events: write
actions: read
contents: read
env:
GINKGO_PROCS: --procs=1
jobs:
make:
name: make
runs-on: ubuntu-latest
strategy:
matrix:
include:
- make: build
go: true
docker: false
- make: test
go: true
docker: false
- make: race
go: true
docker: false
- make: docker-build
go: false
docker: true
- make: e2e-test
go: true
docker: true
- make: goreleaser
go: false
docker: false
- make: lint
go: true
docker: false
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Setup Golang
uses: actions/setup-go@v5
if: matrix.go == true
with:
go-version-file: go.mod
- name: Download dependencies
run: go mod download
if: matrix.go == true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
if: matrix.docker == true
- name: make ${{ matrix.make }}
run: make ${{ matrix.make }}
if: matrix.make != 'goreleaser'
env:
GO_SKIP_GENERATE: 1
- name: Upload results to codecov
uses: codecov/codecov-action@v4
if: matrix.make == 'test' && github.repository_owner == '0xERR0R'
- name: Check GoReleaser configuration
uses: goreleaser/goreleaser-action@v5
if: matrix.make == 'goreleaser'
with:
args: check