-
Notifications
You must be signed in to change notification settings - Fork 86
65 lines (55 loc) · 2.35 KB
/
Copy pathplatform-api-gateway-e2e.yml
File metadata and controls
65 lines (55 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Platform API + Gateway E2E
# Combined live-traffic end-to-end test: the real platform-api control plane
# deploys an API to the real gateway data plane, and a request through the
# gateway ingress must reach the sample backend — exercised on every database.
#
# This builds the gateway (Envoy) images, so it is intentionally not on the
# per-PR critical path: it runs on demand and when the e2e itself changes.
on:
workflow_dispatch:
pull_request:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
e2e:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
db: [sqlite, postgres, sqlserver]
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: '1.26.5'
cache-dependency-path: '**/go.sum'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
- name: Build platform-api image
run: make -C platform-api build IMAGE_NAME=platform-api VERSION=it-e2e
- name: Build gateway images (controller + runtime)
run: make build VERSION=it-e2e
working-directory: gateway
- name: Build sample-service image
run: make build
working-directory: samples/sample-service
- name: Run combined e2e (${{ matrix.db }})
# The developer-portal scenarios (@devportal / @lifecycle) need the devportal
# image, which only platform-api-devportal-e2e.yml builds — exclude them here.
# On the postgres stack the suite would otherwise pull them in by default; on
# the other databases they are auto-skipped, but setting E2E_TAGS bypasses that
# auto-skip, so the postgres-only @multigateway scenario must be excluded too.
env:
E2E_DB: ${{ matrix.db }}
E2E_TAGS: ${{ matrix.db == 'postgres' && '~@devportal' || '~@multigateway && ~@devportal' }}
run: go test -run TestFeatures -count=1 -v -timeout 25m ./...
working-directory: tests/integration-e2e