-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (89 loc) · 3.19 KB
/
check.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Execute automated checks
on:
- push
jobs:
# https://github.com/golangci/golangci-lint-action#how-to-use
lint:
name: Lint go code
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Lint go code with golangci-lint
uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299 # v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.53.3
args: --timeout=5m
test:
name: Verify go test
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Setup golang
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4
with:
go-version: '1.17.0'
- name: Print go version
run: go version
- name: Execute go tests
run: go test -v ./...
tilt-ci-dev:
name: Verify tilt ci (development images)
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Create k8s Kind Cluster
uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # v1.8.0
- name: Install tilt & helm
uses: yokawasa/action-setup-kube-tools@af4ebb1af1efd30c5bd84a2e9773355ad6362a33 # v0.9.3
with:
setup-tools: |
tilt
helm
tilt: 'v0.33.3'
helm: 'v3.6.3'
- name: Install helmfile
run: |
curl --fail -L -s --max-time 60 -o /usr/local/bin/helmfile https://github.com/roboll/helmfile/releases/download/v0.140.0/helmfile_linux_amd64
chmod +x /usr/local/bin/helmfile
- name: Install helm diff
run: |
helm plugin install https://github.com/databus23/helm-diff
- name: Install dependencies
run: |
helmfile sync
- name: Verify tilt ci
run: |
timeout 600 tilt ci
tilt-ci-prod:
name: Verify tilt ci (production images)
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Create k8s Kind Cluster
uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # v1.8.0
- name: Install tilt cli
uses: yokawasa/action-setup-kube-tools@af4ebb1af1efd30c5bd84a2e9773355ad6362a33 # v0.9.3
with:
setup-tools: |
tilt
helm
tilt: 'v0.33.3'
helm: 'v3.6.3'
- name: Install helmfile
run: |
curl --fail -L -s --max-time 60 -o /usr/local/bin/helmfile https://github.com/roboll/helmfile/releases/download/v0.140.0/helmfile_linux_amd64
chmod +x /usr/local/bin/helmfile
- name: Install helm diff
run: |
helm plugin install https://github.com/databus23/helm-diff
- name: Install dependencies
run: |
helmfile sync
- name: Verify tilt ci
run: |
PROD=1 timeout 600 tilt ci