Add Testing Action #16
Workflow file for this run
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
name: Run Skaffold Pipeline, Deploy to Minikube Cluster and run Unguard Helm Test | |
on: | |
pull_request: | |
paths: | |
- src/** | |
- skaffold.yaml | |
- chart/** | |
jobs: | |
lint-build-run-test-unguard: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Set up Helm | |
uses: azure/[email protected] | |
with: | |
version: v3.12.3 | |
- name: Kubectl tool installer | |
uses: Azure/setup-kubectl@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
check-latest: true | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Run chart-testing (lint) | |
run: ct lint --chart-dirs . --charts ./chart --validate-maintainers=false --check-version-increment=false --target-branch ${{ github.event.repository.default_branch }} | |
- name: Set up Minikube | |
uses: medyagh/[email protected] | |
with: | |
addons: ingress | |
- name: add db | |
run: helm repo add bitnami https://charts.bitnami.com/bitnami | |
- name: install db | |
run: helm install unguard-mariadb bitnami/mariadb --set primary.persistence.enabled=false --wait --namespace unguard --create-namespace | |
- name: install unguard | |
run: helm install unguard ./chart --wait --namespace unguard --create-namespace | |
- name: Run chart-testing | |
run: helm test unguard --namespace unguard --timeout 10m0s --logs |