-
Notifications
You must be signed in to change notification settings - Fork 71
55 lines (45 loc) · 1.13 KB
/
build-pr.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
name: Build PR
on: [pull_request]
jobs:
lint:
name: Lint
timeout-minutes: 10
runs-on: ubuntu-latest
env:
GO111MODULE: "on"
steps:
- name: Set up Go 1.22
uses: actions/setup-go@v1
with:
go-version: 1.22
id: go
- name: Checkout code into the Go module directory
uses: actions/checkout@v2
- name: Check license headers
run: make validate
- name: Run golangci-lint
run: make lint
build-linux:
name: Build Linux
timeout-minutes: 10
runs-on: ubuntu-latest
env:
GO111MODULE: "on"
E2E_HUB_USERNAME: ${{ secrets.E2E_HUB_USERNAME }}
E2E_HUB_TOKEN: ${{ secrets.E2E_HUB_TOKEN }}
steps:
- name: Docker version
run: docker version
- name: Set up Go 1.22
uses: actions/setup-go@v1
with:
go-version: 1.22
id: go
- name: Checkout code into the Go module directory
uses: actions/checkout@v2
- name: Build CLI
run: make build
- name: Unit Tests
run: make test-unit
- name: End-to-end Tests
run: make e2e