Skip to content

Commit

Permalink
feat: add helm tests
Browse files Browse the repository at this point in the history
Signed-off-by: WoodenMaiden <[email protected]>
  • Loading branch information
WoodenMaiden committed Feb 8, 2024
1 parent 78e20b0 commit c5de685
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cicd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
# This workflow will build a docker container, publish it to our private registry
# tagged as latest and with latest commit hash (shortened)
jobs:
test_helm:
uses: ./github/workflows/test_helm_chart.yaml

build:
runs-on: self-hosted

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- v[0-9]+.[0-9]+.[0-9]+

jobs:
test_helm:
uses: ./github/workflows/test_helm_chart.yaml

build:
runs-on: ubuntu-latest

Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/test_helm_chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test Helm chart

on:
workflow_call:

run-name: Test Helm Chart

jobs:
job:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install Helm
uses: azure/setup-helm@v3

- name: Helm Check Action
uses: hopisaurus/[email protected]
env:
CHART_LOCATION: ./agrold-javaweb/charts/agrold-javaweb
CHART_VALUES: ./agrold-javaweb/charts/agrold-javaweb/values.yaml
with:
chart-location: ./agrold-javaweb/charts/agrold-javaweb
chart-values: ./agrold-javaweb/charts/agrold-javaweb/values.yaml

0 comments on commit c5de685

Please sign in to comment.