-
Notifications
You must be signed in to change notification settings - Fork 51
41 lines (36 loc) · 1012 Bytes
/
e2e.yaml
File metadata and controls
41 lines (36 loc) · 1012 Bytes
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
name: E2E Tests
on:
pull_request:
branches: [main]
merge_group:
branches: [main]
types: [checks_requested]
workflow_dispatch:
jobs:
e2e:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
backend: [k8s, docker]
name: e2e (${{ matrix.backend }})
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Run E2E tests
env:
DOCKER_BUILDER: "docker buildx"
DOCKER_BUILD_ARGS: "--push --platform linux/amd64"
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: make test-e2e-${{ matrix.backend }}
- name: Dump cluster state on failure
if: failure() && matrix.backend == 'k8s'
run: make dump-kind-state