forked from hpcc-systems/HPCC-Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HPCC-XXXX Add workflow test to check if default helm output changes
Signed-off-by: Gavin Halliday <[email protected]>
- Loading branch information
Showing
2 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Check for change in helm output | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "candidate-*" | ||
- "!candidate-7.8.*" | ||
- "!candidate-7.6.*" | ||
- "!candidate-7.4.*" | ||
- "!candidate-7.2.*" | ||
- "!candidate-7.0.*" | ||
- "!candidate-6.*" | ||
pull_request: | ||
branches: | ||
- "master" | ||
- "candidate-*" | ||
- "!candidate-7.8.*" | ||
- "!candidate-7.6.*" | ||
- "!candidate-7.4.*" | ||
- "!candidate-7.2.*" | ||
- "!candidate-7.0.*" | ||
- "!candidate-6.*" | ||
|
||
jobs: | ||
pre_job: | ||
# continue-on-error: true # Uncomment once integration is finished | ||
runs-on: ubuntu-20.04 | ||
# Map a step output to a job output | ||
outputs: | ||
helm: ${{ steps.skip_check.outputs.helm }} | ||
steps: | ||
- id: skip_check | ||
uses: hpcc-systems/github-actions/changed-modules@main | ||
with: | ||
github_token: ${{ github.token }} | ||
build: | ||
name: "Check helm chart lint" | ||
runs-on: ubuntu-20.04 | ||
needs: pre_job | ||
#if: ${{ github.repository == 'hpcc-systems/HPCC-Platform' && needs.pre_job.outputs.helm }} | ||
if: ${{ needs.pre_job.outputs.helm }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: false | ||
- uses: azure/setup-helm@v3 | ||
with: | ||
version: 'latest' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
id: install | ||
- name: Test | ||
working-directory: . | ||
run: | | ||
helm template helm/hpcc > ${{ runner.temp }}/newoutput.txt | ||
git checkout ${{ github.base_ref }} | ||
helm template helm/hpcc > ${{ runner.temp }}/oldoutput.txt | ||
diff ${{ runner.temp }}/oldoutput.txt ${{ runner.temp }}/newoutput.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters