feat(ci): split integration tests execution by category #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 'jdk' | ||
experimental: | ||
type: boolean | ||
required: false | ||
default: false | ||
checkout-ref: | ||
type: string | ||
required: false | ||
default: '' | ||
it-category: | ||
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/actions-setup-minikube@v2.12.0 | ||
with: | ||
minikube version: 'v1.33.0' | ||
kubernetes version: '${{ inputs.kube-version }}'' | ||
driver: 'docker' | ||
github token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run integration tests | ||
run: | | ||
it_profile = "integration-tests" | ||
if [ -z "${{inputs.it-category}}" ]; then | ||
it_profile = "integration-tests-${{inputs.it-category}}" | ||
fi | ||
./mvnw ${MAVEN_ARGS} -B package -P${it_profile} -T1C -Dfabric8-httpclient-impl.name=${{inputs.http-client}} --file pom.xml |