Skip to content

Commit 0a950a1

Browse files
authored
Update release.yaml
Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com>
1 parent 84e1681 commit 0a950a1

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

.github/workflows/release.yaml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- 'v*'
1010

1111
env:
12-
GO_VERSION: "1.20.x"
12+
GO_VERSION: "1.16.7"
1313

1414
jobs:
1515
wait-for-checks:
@@ -24,30 +24,59 @@ jobs:
2424
echo "Tag: ${GITHUB_REF##*/}"
2525
git fetch origin main
2626
git merge-base --is-ancestor ${GITHUB_REF##*/} origin/main && echo "${GITHUB_REF##*/} is a commit on main!"
27+
- name: Build snapshot artifacts
28+
uses: fountainhead/action-wait-for-check@v1.0.0
29+
id: snapshot
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
# This check name is defined as the github actions job name (in .github/workflows/acceptance-test.yaml)
33+
checkName: "Build-Snapshot-Artifacts"
34+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
2735

2836
- name: Check static analysis
2937
uses: fountainhead/action-wait-for-check@v1.0.0
3038
id: static-analysis
3139
with:
3240
token: ${{ secrets.GITHUB_TOKEN }}
33-
# This check name is defined as the github actions job name (in .github/workflows/static-analysis-integration.yaml)
34-
checkName: "Static-Analysis (1.20.x, ubuntu-latest)"
41+
# This check name is defined as the github actions job name (in .github/workflows/acceptance-test.yaml)
42+
checkName: "Static-Analysis (1.x, ubuntu-latest)"
3543
ref: ${{ github.event.pull_request.head.sha || github.sha }}
3644

3745
- name: Check unit, and integration test results
3846
uses: fountainhead/action-wait-for-check@v1.0.0
3947
id: tests-unit-int
4048
with:
4149
token: ${{ secrets.GITHUB_TOKEN }}
42-
# This check name is defined as the github actions job name (in .github/workflows/static-analysis-integration.yaml)
43-
checkName: "Tests (1.20.x, ubuntu-latest)"
50+
# This check name is defined as the github actions job name (in .github/workflows/acceptance-test.yaml)
51+
checkName: "Tests (1.x, ubuntu-latest)"
52+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
53+
54+
- name: Check acceptance test results (helm v1.13.12)
55+
uses: fountainhead/action-wait-for-check@v1.0.0
56+
id: acceptance-helm-1-13-12
57+
with:
58+
token: ${{ secrets.GITHUB_TOKEN }}
59+
# This check name is defined as the github action job name + the kubernetes version (see below) (in .github/workflows/acceptance-test.yaml)
60+
checkName: "Acceptance-Helm (v1.13.12)"
61+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
62+
63+
- name: Check acceptance test results (helm v1.18.0)
64+
uses: fountainhead/action-wait-for-check@v1.0.0
65+
id: acceptance-helm-1-18-0
66+
with:
67+
token: ${{ secrets.GITHUB_TOKEN }}
68+
# This check name is defined as the github action job name + the kubernetes version (see below) (in .github/workflows/acceptance-test.yaml)
69+
checkName: "Acceptance-Helm (v1.18.0)"
4470
ref: ${{ github.event.pull_request.head.sha || github.sha }}
4571

4672
- name: Quality gate
47-
if: steps.static-analysis.outputs.conclusion != 'success' || steps.tests-unit-int.outputs.conclusion != 'success'
73+
if: steps.static-analysis.outputs.conclusion != 'success' || steps.tests-unit-int.outputs.conclusion != 'success' || steps.snapshot.outputs.conclusion != 'success' || steps.acceptance-helm-1-13-12.outputs.conclusion != 'success' || steps.acceptance-helm-1-18-0.outputs.conclusion != 'success'
4874
run: |
4975
echo "Static-Analysis Status : ${{ steps.static-analysis.outputs.conclusion }}"
5076
echo "Unit/Integration Status : ${{ steps.tests-unit-int.outputs.conclusion }}"
77+
echo "Build Snapshot Artifacts Status: ${{ steps.snapshot.outputs.conclusion }}"
78+
echo "Acceptance Test (Helm v1.13.12) Status: ${{ steps.acceptance-helm-1-13-12.outputs.conclusion }}"
79+
echo "Acceptance Test (Helm v1.18.0) Status: ${{ steps.acceptance-helm-1-18-0.outputs.conclusion }}"
5180
false
5281
5382
release:

0 commit comments

Comments
 (0)