Files
panxiao81 5ff3cf7282
E2E Tests / Run on Ubuntu (pull_request) Failing after 50s
Tests / Run on Ubuntu (pull_request) Successful in 3m58s
Lint / Run on Ubuntu (pull_request) Successful in 4m22s
fix: connect integration tests to Compose network
2026-09-10 16:50:44 +00:00

47 lines
1.2 KiB
YAML

name: Tests
on:
push:
branches:
- main
pull_request:
permissions: {}
jobs:
test:
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: Running Tests
run: |
go mod tidy
make test
- name: Running PostgreSQL Integration Tests
run: |
make dev-up
docker network connect postgresql-tenant-operator-dev_default "${HOSTNAME}"
POSTGRES_TEST_DSN="postgres://postgres:postgres-dev-only@postgres:5432/postgres?sslmode=disable" make test-integration
- name: Clean up Integration Dependencies
if: always()
run: |
docker network disconnect postgresql-tenant-operator-dev_default "${HOSTNAME}" || true
make dev-down
- name: Verify generated files and modules are current
run: git diff --exit-code