Files
postgresql-tenant-operator/.github/workflows/test-e2e.yml
T
panxiao81 7782b1e75d
Lint / Run on Ubuntu (push) Failing after 3h0m1s
E2E Tests / Run on Ubuntu (push) Failing after 3h0m1s
Tests / Run on Ubuntu (push) Failing after 3h0m1s
ci: 规范项目开发与验证流程
2026-09-09 20:01:49 +00:00

48 lines
1.1 KiB
YAML

name: E2E Tests
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 the latest version of kind
run: |
mkdir -p ./bin
curl -Lo ./bin/kind https://kind.sigs.k8s.io/dl/latest/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