-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (43 loc) · 970 Bytes
/
build-test.yaml
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
name: Build check
on:
pull_request:
branches:
- main
paths:
- 'go.mod'
- 'go.sum'
- 'cmd/**'
- 'pkg/**'
- 'Dockerfile'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
timeout-minutes: 10
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up go
timeout-minutes: 5
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.62.2
args: --timeout=5m --config=.golangci.yml
- name: Build
timeout-minutes: 10
run: make images
env:
PLATFORM: "linux/amd64"
- name: Test
run: make unit