-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
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,39 @@ | ||
name: Helm testing | ||
on: | ||
pull_request: | ||
paths: | ||
- helm/** | ||
push: | ||
|
||
jobs: | ||
helm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
|
||
- name: Install Helm dependencies | ||
run: helm dependency update helm | ||
|
||
- name: Lint Helm chart | ||
run: helm lint --strict -f helm/values.local.yaml helm | ||
|
||
- name: Install Minikube | ||
uses: manusa/actions-setup-minikube@v2.13.0 | ||
with: | ||
minikube version: v1.34.0 | ||
kubernetes version: v1.32.0 | ||
|
||
- name: Setup Kubernetes context | ||
run: kubectl config use-context minikube | ||
|
||
- name: Install and test Helm chart | ||
run: | | ||
helm install cfgov helm \ | ||
-f helm/values.local.yaml \ | ||
--namespace cfgov \ | ||
--create-namespace | ||
helm test cfgov --namespace cfgov |