33 lines
809 B
YAML
33 lines
809 B
YAML
name: operator-e2e-tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
tests:
|
|
name: End-2-End tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version: "^1.26.4"
|
|
- name: Make dependencies
|
|
run: make mocks
|
|
- name: Code generation
|
|
run: make codegen
|
|
- name: Run unit tests
|
|
run: make test
|
|
- name: Pre-pull heavy images directly on Kind nodes
|
|
run: |
|
|
FOR_NODE=$(kind get nodes --name postgres-operator-e2e-tests 2>/dev/null || true)
|
|
for node in $FOR_NODE; do
|
|
echo "Pulling Spilo image on node $node..."
|
|
docker exec "$node" crictl pull ghcr.io/zalando/spilo-18:4.1-p2
|
|
done
|
|
- name: Run end-2-end tests
|
|
run: make e2e
|