File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161
6262 test-e2e :
6363 runs-on : ubuntu-latest
64- timeout-minutes : 20
64+ timeout-minutes : 30
6565 steps :
6666 - uses : actions/checkout@v4
6767
7676 - name : Install system dependencies
7777 run : sudo apt-get update && sudo apt-get install -y make
7878
79+ - name : Build e2e test container
80+ run : |
81+ echo "Building e2e test container..."
82+ OCI_BIN=docker make container-test
83+ echo "Available Docker images:"
84+ docker images | grep observatorium || echo "No observatorium images found"
85+ echo "Saving container image to cache..."
86+ docker save quay.io/observatorium/api:local_e2e_test > /tmp/e2e-image.tar
87+
88+ - name : Load e2e test container
89+ run : |
90+ echo "Loading e2e test container..."
91+ docker load < /tmp/e2e-image.tar
92+ echo "Verifying image is loaded:"
93+ docker images | grep observatorium
94+
7995 - name : End-to-end tests
80- run : OCI_BIN=docker make test-e2e
96+ run : |
97+ echo "Running e2e tests..."
98+ rm -rf test/e2e/e2e_*
99+ OCI_BIN=docker CGO_ENABLED=1 GO111MODULE=on go test -timeout=25m -race -short -tags integration ./test/e2e 2>&1 | tee test_output.log
100+ exit_code=${PIPESTATUS[0]}
101+ if [ $exit_code -ne 0 ]; then
102+ echo "Tests failed with exit code: $exit_code"
103+ echo "Last 50 lines of output:"
104+ tail -50 test_output.log
105+ fi
106+ exit $exit_code
81107
82108 generate :
83109 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments