-
Notifications
You must be signed in to change notification settings - Fork 218
57 lines (51 loc) · 1.57 KB
/
e2e-test.yml
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
# Integration and end to end tests which runs locally and deploys the Operator to a Kubernetes
# (Minikube) cluster and creates custom resources to verify the operator's functionality
name: Integration & End to End tests
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'adr/**'
branches: [ main, next ]
push:
paths-ignore:
- 'docs/**'
- 'adr/**'
branches:
- main
- next
jobs:
sample_operators_tests:
strategy:
matrix:
sample:
- "sample-operators/mysql-schema"
- "sample-operators/tomcat-operator"
- "sample-operators/webpage"
- "sample-operators/leader-election"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Minikube-Kubernetes
uses: manusa/[email protected]
with:
minikube version: v1.34.0
kubernetes version: v1.32.0
github token: ${{ secrets.GITHUB_TOKEN }}
driver: docker
- name: Set up Java and Maven
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: 'maven'
- name: Build SDK
run: mvn install -DskipTests
- name: Run integration tests in local mode
run: |
mvn test -P end-to-end-tests -pl ${{ matrix.sample }}
- name: Run E2E tests as a deployment
run: |
eval $(minikube -p minikube docker-env)
mvn jib:dockerBuild test -P end-to-end-tests -Dtest.deployment=remote -pl ${{ matrix.sample }}