-
Notifications
You must be signed in to change notification settings - Fork 11
56 lines (44 loc) · 1.12 KB
/
verify.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: Go & Image
on:
# Trigger the workflow on push or pull request on master branch
pull_request:
branches:
- master
- v2
- v1
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.19
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up qemu
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: Build
run: make khelm
- name: Test
run: make test
- name: Lint
run: make check
- name: Container image
run: make image
- name: e2e test
run: make e2e-test
- name: Extract Helm version
id: extract_helm_version
run: |
printf '::set-output name=helm_version::' &&
grep helm\.sh/helm/ go.mod | sed -E -e 's!helm\.sh/helm/v3|\s+|\+.*!!g; s!^v!!' | cut -d " " -f2 | grep -E .+
- name: Dry-run release
run: make snapshot
env:
HELM_VERSION: ${{ steps.extract_helm_version.outputs.helm_version }}