Skip to content

Add Testing Action

Add Testing Action #3

Workflow file for this run

name: Run Skaffold Pipeline, Deploy to Minikube Cluster and Test Unguard
on:
pull_request:
paths:
- src/**
- k8s-manifests
- skaffold.yaml
- chart/**
jobs:
lint-build-run-test-unguard:
name: Skaffold Run
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.12.3
- 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 --target-branch ${{ github.event.repository.default_branch }}
- name: Set up Minikube
uses: medyagh/[email protected]
with:
addons: ingress
- name: Cache Skaffold layers
uses: actions/cache@v3
with:
path: "~/.skaffold/"
key: fixed-${{ github.sha }}
- name: Run Skaffold and Deploy to Minikube Cluster
uses: hiberbee/[email protected]
with:
command: run --cache-artifacts --no-prune
skip-tests: true
- name: Run chart-testing
run: helm test unguard --namespace unguard