Skip to content

Commit c95b08d

Browse files
committed
add matrix for optional versions
1 parent 6d4085a commit c95b08d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/lth-docker.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
description: 'Liquibase Pro license key'
88
required: true
99
inputs:
10-
versions:
11-
description: 'Version(s) of Docker Database to test'
10+
version:
11+
description: 'Version of Docker Database to test'
1212
required: false
1313

1414
jobs:
@@ -19,7 +19,6 @@ jobs:
1919
strategy:
2020
matrix:
2121
liquibase-support-level: [Contributed, Foundational, Advanced] # Define the different test levels to run
22-
versions: ["${{ inputs.versions }}"] # Define the different versions of Docker Database to test
2322
fail-fast: false # Set fail-fast to false to run all test levels even if some of them fail
2423

2524
steps:
@@ -39,17 +38,17 @@ jobs:
3938
- name: Build with Maven # Build the code with Maven (skip tests)
4039
run: mvn -ntp -Dmaven.test.skip package
4140

42-
- name: Run ${{ matrix.liquibase-support-level }} Liquibase Test Harness ${{ matrix.versions }} # Run the Liquibase test harness at each test level
41+
- name: Run ${{ matrix.liquibase-support-level }} Liquibase Test Harness ${{ inputs.version }} # Run the Liquibase test harness at each test level
4342
continue-on-error: true # Continue to run the action even if the previous steps fail
4443
env:
4544
LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.PRO_LICENSE_KEY }} # Set the environment variable for the Liquibase Pro license key
46-
run: mvn -ntp -DdbVersion=${{ matrix.versions }} -Dtest=${{ matrix.liquibase-support-level }}ExtensionHarnessSuite test # Run the Liquibase test harness at each test level
45+
run: mvn -ntp -DdbVersion=${{ inputs.version }} -Dtest=${{ matrix.liquibase-support-level }}ExtensionHarnessSuite test # Run the Liquibase test harness at each test level
4746

4847
- name: Test Reporter # Generate a test report using the Test Reporter action
4948
uses: dorny/[email protected]
5049
if: always() # Run the action even if the previous steps fail
5150
with:
52-
name: Liquibase Test Harness - ${{ matrix.liquibase-support-level }} Reports ${{ matrix.versions }} # Set the name of the test report
51+
name: Liquibase Test Harness - ${{ matrix.liquibase-support-level }} Reports ${{ inputs.version }} # Set the name of the test report
5352
path: target/surefire-reports/TEST-*.xml # Set the path to the test report files
5453
reporter: java-junit # Set the reporter to use
5554
fail-on-error: false # Set fail-on-error to false to show report even if it has failed tests

0 commit comments

Comments
 (0)