-
Notifications
You must be signed in to change notification settings - Fork 218
50 lines (48 loc) · 1.45 KB
/
integration-tests.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
name: Parameterized Integration Tests
on:
workflow_call:
inputs:
java-version:
type: string
required: true
kube-version:
type: string
required: true
http-client:
type: string
required: false
default: 'okhttp'
experimental:
type: boolean
required: false
default: false
checkout-ref:
type: string
required: false
default: ''
jobs:
integration_tests:
runs-on: ubuntu-latest
continue-on-error: ${{ inputs.experimental }}
timeout-minutes: 40
steps:
- name: Output test information
run: echo "Running ITs with ${{ inputs.http-client }}, ${{ inputs.kube-version }}, ${{ inputs.java-version }}"
- uses: actions/checkout@v4
with:
ref: ${{ inputs.checkout-ref }}
- name: Set up Java and Maven
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ inputs.java-version }}
cache: 'maven'
- name: Set up Minikube
uses: manusa/[email protected]
with:
minikube version: v1.33.0
kubernetes version: ${{ inputs.kube-version }}
driver: 'docker'
github token: ${{ secrets.GITHUB_TOKEN }}
- name: Run integration tests
run: ./mvnw ${MAVEN_ARGS} -B package -P no-unit-tests -Dfabric8-httpclient-impl.name=${{inputs.http-client}} --file pom.xml