-
Notifications
You must be signed in to change notification settings - Fork 4
66 lines (66 loc) · 1.63 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
59
60
61
62
63
64
65
66
name: Unikorn Push
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
env:
GO_VERSION: 1.22.5
jobs:
Static:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Touch
run: make touch
- name: License Checker
run: make license
- name: Validate OpenAPI Schema
run: make validate
#- name: Validate documentation
# run: sudo apt -y install wbritish && make validate-docs
Runtime:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Install Helm
uses: azure/setup-helm@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Touch
run: make touch
- name: Build Helm Chart
run: helm dependency update charts/region
- name: Golang CI/Helm Lint
run: make lint
- name: Build Images
run: make charts/region/crds images
- name: Build Generated Code
run: make generate
- name: Generated Code Checked In
run: '[[ -z $(git status --porcelain) ]]'
- name: Unit Test
run: make test-unit
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage
path: cover.html
- name: Run Codecov
uses: codecov/codecov-action@v3
env:
token: ${{ secrets.CODECOV_TOKEN }}