Skip to content

Commit

Permalink
DAT-17326: add ability to run extra command specific to Linux and Win…
Browse files Browse the repository at this point in the history
…dows (#181)

* update description of extraCommand

* add extraLinuxCommand and extraWindowsCommand steps

---------

Co-authored-by: Alejandro Alvarez <avazquez@liquibase.com>
  • Loading branch information
StevenMassaro and jandroav authored Mar 21, 2024
1 parent cf4a74a commit 1ea4c8f
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/pro-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,17 @@ on:
default: false
type: boolean
extraCommand:
description: "Specify it if you want to run an extra command before attaching the artifact"
description: "Specify it if you want to run an extra command before attaching the artifact. This runs on both Linux and Windows runners."
required: false
default: ""
type: string
extraLinuxCommand:
description: "Specify it if you want to run an extra command before attaching the artifact on Linux."
required: false
default: ""
type: string
extraWindowsCommand:
description: "Specify it if you want to run an extra command before attaching the artifact on Windows."
required: false
default: ""
type: string
Expand Down Expand Up @@ -117,6 +127,11 @@ jobs:
run: |
${{ inputs.extraCommand }}
- name: Run extra Linux command
if: inputs.extraLinuxCommand != ''
run: |
${{ inputs.extraLinuxCommand }}
- name: Build and Package latest liquibase version
if: ${{ inputs.nightly }}
run: mvn -B dependency:go-offline clean package -DskipTests=true "-Dliquibase.version=master-SNAPSHOT"
Expand Down Expand Up @@ -235,6 +250,16 @@ jobs:
run: |
${{ inputs.extraCommand }}
- name: Run extra Linux command
if: inputs.extraLinuxCommand != '' && runner.os == 'Linux'
run: |
${{ inputs.extraLinuxCommand }}
- name: Run extra Windows command
if: inputs.extraWindowsCommand != '' && runner.os == 'Windows'
run: |
${{ inputs.extraWindowsCommand }}
- name: Run Tests
if: ${{ !inputs.nightly }}
run: mvn -B test -P 'coverage' ${{ inputs.extraMavenArgs }}
Expand Down

0 comments on commit 1ea4c8f

Please sign in to comment.