-
Notifications
You must be signed in to change notification settings - Fork 20
45 lines (38 loc) · 1.45 KB
/
test.yaml
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
name: Integration tests
on:
pull_request:
types: [ labeled ]
jobs:
test:
if: ${{ github.event.label.name == 'run-all-tests' }}
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
if: github.event_name == 'pull_request'
uses: styfle/[email protected]
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: Setup Minikube
uses: manusa/[email protected]
with:
minikube version: 'v1.24.0'
kubernetes version: 'latest'
start args: '--addons=registry,storage,ingress --insecure-registry "10.0.0.0/24" --insecure-registry "localhost:5000" --extra-config=kubeadm.ignore-preflight-errors=SystemVerification --extra-config=apiserver.authorization-mode=RBAC,Node'
- name: Build and push images
run: |
mvn package -pl operator,sync -am -Pimage-test-push --no-transfer-progress -Dquarkus.kubernetes.resources.requests.cpu=50m -Dquarkus.kubernetes.resources.requests.memory=128Mi
- name: Run test
run: |
mvn verify -P systemtest -pl systemtest -am --no-transfer-progress
- name: Archive results
uses: actions/upload-artifact@v3
if: failure()
with:
name: artifacts
path: systemtest/target/logs/