-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (58 loc) · 1.33 KB
/
pull-request.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
49
50
51
52
53
54
55
56
57
58
name: Pull request
on:
- pull_request
jobs:
sanitize:
name: Sanitize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.21.0"
- name: Go vet
run: |
make vet
tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.21.0"
- name: Go vet
run: |
make vet
- name: Unit tests
run: |
make unit-tests
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get short commit hash
run: echo "SHORT_SHA=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.21.0"
- name: Build Linux AMD64
run: |
make helmvm-linux-amd64 VERSION=dev-$SHORT_SHA
- name: Build Darwin AMD64
run: |
make helmvm-darwin-amd64
- name: Build Darwin ARM64 VERSION=dev-$SHORT_SHA
run: |
make helmvm-darwin-arm64 VERSION=dev-$SHORT_SHA
- name: Build HelmVM Builder Server Image
uses: docker/build-push-action@v5
with:
push: false