Skip to content

Commit

Permalink
add github action for helm unit test
Browse files Browse the repository at this point in the history
Signed-off-by: David van der Spek <vanderspek.david@gmail.com>
  • Loading branch information
davidspek committed Sep 4, 2023
1 parent c786e2a commit 9503101
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/cluster-chart-unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: cluster-chart-unit-test

on:
push:
branches: [ main ]
paths:
- 'bootstrap/helm/cluster-api-cluster/**'
pull_request:
branches: [ main ]
paths:
- 'bootstrap/helm/cluster-api-cluster/**'
jobs:
helm-unit-test:
runs-on: ubuntu-latest
permissions:
contents: 'read'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: install helm
uses: azure/setup-helm@v3
with:
version: v3.12.3
- name: install helm unit test
run: helm plugin install https://github.com/helm-unittest/helm-unittest.git
- name: run helm unit test
run: helm unittest ./bootstrap/helm/cluster-api-cluster

0 comments on commit 9503101

Please sign in to comment.