Skip to content

Clean kind clusters after e2e #296

Clean kind clusters after e2e

Clean kind clusters after e2e #296

Workflow file for this run

name: e2e tests
on:
push:
branches: ["main"]
pull_request_target:
types: ["opened", "synchronize", "reopened"]
branches: ["main"]
jobs:
e2e:
runs-on: [capmox,e2e,dcd-playground]
environment: e2e
continue-on-error: true # to make sure post runs
env:
PROXMOX_URL: ${{ secrets.PROXMOX_URL }}
PROXMOX_TOKEN: ${{ secrets.PROXMOX_TOKEN }}
PROXMOX_SECRET: ${{ secrets.PROXMOX_SECRET }}
steps:
- name: Check out branch ${{ github.ref }}
if: ${{ github.event_name == 'push' }}
uses: actions/[email protected]
- name: Check out PR ${{ github.event.pull_request.number }}
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/[email protected]
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run e2e tests
run: "make test-e2e"
post:
runs-on: [capmox,e2e,dcd-playground]
environment: e2e
steps:
- name: cleanup kind clusters
run: |
kind get clusters | xargs kind delete cluster --name