-
Notifications
You must be signed in to change notification settings - Fork 50
48 lines (37 loc) · 1.03 KB
/
ci.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
name: Go test CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
go-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22.2'
- name: Test the commit
run: make test
- name: Build deployctl
run: make tools
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
# when the files to be extracted are already present,
# tar extraction in Golangci Lint fails with the "File exists"
# errors. These files appear to be present because of
# cache in setup-go, on disabling the cache we are no more seeing
# such error. Cache is to be enabled once the fix is available for
# this issue
go-version: '1.22.2'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.57.1
args: "-v --timeout 15m0s"