-
Notifications
You must be signed in to change notification settings - Fork 422
56 lines (54 loc) · 1.22 KB
/
merge-build.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
name: "Merge Build"
on:
push:
branches:
- master
- release/*
pull_request:
branches:
- master
- release/*
permissions:
actions: read
contents: read
deployments: read
jobs:
build_and_test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go workspace
run: |
shopt -s extglob
shopt -s dotglob
shell: bash
- name: Install Helm
uses: azure/[email protected]
with:
version: v3.11.0
- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.22.5'
- name: Go and Helm lint check
run: make lint-all
- name: Go vet
run: make vet-all
- name: Get dependencies and build
run: make build
- name: Run unit tests with code coverage
run: make unittest
- name: Publish test results
if: always()
uses: actions/[email protected]
with:
name: test-results
path: ${{ github.workspace }}/**/report.xml
- name: Publish code coverage results
if: always()
uses: actions/[email protected]
with:
name: code-coverage
path: coverage.xml