Files
postgresql-tenant-operator/.github/workflows/test-e2e.yml
T

51 lines
1.1 KiB
YAML

name: E2E Tests
env:
KIND_VERSION: v0.33.0
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions: {}
jobs:
test-e2e:
permissions:
contents: read
name: Run on Ubuntu
runs-on: self-hosted
steps:
- name: Clone the code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
- name: Install kind
run: |
mkdir -p ./bin
curl -Lo ./bin/kind https://kind.sigs.k8s.io/dl/${KIND_VERSION}/kind-linux-$(go env GOARCH)
chmod +x ./bin/kind
- name: Verify Docker and kind
run: |
docker info
./bin/kind version
- name: Running Test e2e
run: |
go mod tidy
make test-e2e KIND=./bin/kind
- name: Clean up the Kind cluster
if: always()
run: make cleanup-test-e2e KIND=./bin/kind