use new cluster for each test
This commit is contained in:
parent
3b62c826af
commit
718ab751be
1 changed files with 5 additions and 18 deletions
23
.github/workflows/smoke-tests.yml
vendored
23
.github/workflows/smoke-tests.yml
vendored
|
@ -10,28 +10,15 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
smoke-tests:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Check Test Cluster
|
|
||||||
run: |
|
|
||||||
if kubectl get nodes; then
|
|
||||||
kubectl get nodes
|
|
||||||
else
|
|
||||||
echo "test cluster not active. Attempting to create through kind..."
|
|
||||||
kind delete cluster 2>/dev/null
|
|
||||||
kind create cluster
|
|
||||||
kubectl get nodes
|
|
||||||
fi
|
|
||||||
test-source:
|
|
||||||
runs-on: self-hosted
|
|
||||||
needs: setup
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Clean Cluster
|
- name: Setup Cluster
|
||||||
run: |
|
run: |
|
||||||
kubectl delete all --all --wait=true --force --grace-period=0
|
kind delete cluster 2>/dev/null
|
||||||
sleep 5
|
kind create cluster
|
||||||
|
kubectl get nodes
|
||||||
- name: Deploy From Source
|
- name: Deploy From Source
|
||||||
run: |
|
run: |
|
||||||
skaffold run
|
skaffold run
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue