Skip to content

Commit

Permalink
Add integration test workflow for deploying application to Minikube
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Exler <steffen@exivity.com>
  • Loading branch information
linuxluigi committed Apr 30, 2024
1 parent fb77839 commit d1fb10d
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy Application to Minikube

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y conntrack
pip install requests
- name: Install Minikube
run: |
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
- name: Start Minikube
run: make minikube-start

- name: Install Helm
run: |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
- name: Deploy NFS and Exivity Helm charts
run: make deploy-charts

- name: Run Tests
run: make test

- name: Clean up Minikube
if: always()
run: make minikube-delete

0 comments on commit d1fb10d

Please sign in to comment.