Skip to content

feat: efficient many to one matrix #276

feat: efficient many to one matrix

feat: efficient many to one matrix #276

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Integration test suite
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
maven-build-cache:
name: Build with Maven and cache dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
cache-dependency-path: ./pom.xml
- name: Build the podman image for changes
run: |
echo "Caching the maven dependencies"
mvn -B package --file pom.xml
scenario-debian-12-tomcat-war-systemd:
name: Run Debian 12 Tomcat WAR systemd integration tests
runs-on: ubuntu-latest
needs:
- maven-build-cache
strategy:
matrix:
test_case: [ '0_*.sh', '1_*.sh', '2_*.sh', '3_*.sh' ]
image: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
cache-dependency-path: ./pom.xml
- name: Run integration tests
run: |
echo "Running integration tests ${{ matrix.test_case }}"
./.integration-scenarios/debian-12-tomcat-war-systemd/run.sh -t -g '${{ matrix.test_case }}'
debian-12-jar-mvn-run-tests:
needs:
- maven-build-cache
name: Run Debian 12 Maven JAR integration tests
runs-on: ubuntu-latest
strategy:
matrix:
runtype: [ '-m' , '-j' ]
testgroup: [ build-all-graphs*, arg-overrides*, check*, config-json*, config-yml*, lookup*, missing*, ors-config*, specify-json*, specify-yml*, profile-default* ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
cache-dependency-path: ./pom.xml
- name: Run test group with run type
run: |
echo "Scenario: ${{ matrix.runtype }} - ${{ matrix.testgroup }}"
echo "Parameters: ${{ matrix.parameters }}"
.integration-scenarios/debian-12-jar-mvn/run.sh -b ${{ matrix.runtype }} -t ${{ matrix.testgroup }}