Skip to content

Commit

Permalink
👷 ci: Implement test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MfCrizz committed Sep 11, 2023
1 parent da44e99 commit 1a33976
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 77 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/lint-and-test-chart.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Run Skaffold Pipeline, Deploy to Minikube Cluster and Test Unguard
name: Run Skaffold Pipeline, Deploy to Minikube Cluster and run Unguard Helm Test
on:
pull_request:
paths:
- src/**
- k8s-manifests
- skaffold.yaml
- chart/**

Expand All @@ -30,7 +29,7 @@ jobs:
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 }}
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]
Expand Down
4 changes: 2 additions & 2 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ annotations:
licenses: Apache-2.0
apiVersion: v2
name: unguard
version: 0.8.2
version: 0.8.1
description: Unguard is an insecure cloud-native microservices demo application.
type: application
home: https://github.com/dynatrace-oss/unguard
icon: https://github.com/dynatrace-oss/unguard/blob/main/docs/images/logo/unguard-logo-red-small.png
appVersion: 0.8.2
appVersion: 0.8.1
27 changes: 0 additions & 27 deletions chart/templates/tests/test-connection.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions chart/templates/tests/test-frontend-connection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Pod
metadata:
name: unguard-frontend-connection
labels:
app.kubernetes.io/name: unguard-frontend-connection
app.kubernetes.io/part-of: unguard
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ .Values.userSimulator.cronJob.jobTemplate.container.env.FRONTEND_ADDR }}/login']
restartPolicy: Never

0 comments on commit 1a33976

Please sign in to comment.