forked from aws/aws-app-mesh-controller-for-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 860 Bytes
/
unit-test.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
name: unit-test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: unit-test
runs-on: ubuntu-22.04
steps:
- name: setup go 1.20
uses: actions/setup-go@v3
with:
go-version: '1.20.*'
id: go
- name: setup kubebuilder
run: |
arch=$(go env GOARCH)
os=$(go env GOOS)
version="2.3.1"
curl -L https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${version}/kubebuilder_${version}_${os}_${arch}.tar.gz | tar -xz -C /tmp/
sudo mv /tmp/kubebuilder_${version}_${os}_${arch} /usr/local/kubebuilder
export PATH=$PATH:/usr/local/kubebuilder/bin
- name: checkout code
uses: actions/checkout@v2
- name: unit tests
run: make test
- name: helm v2 and v3 lint
run: make helm-lint