Skip to content

Commit

Permalink
DAT-15348 DevOps :: run nightly builds for extensions against core ma…
Browse files Browse the repository at this point in the history
…ster-snapshot (#62)

* chore(create-release.yml): update sonar-push.yml version to v0.4.1 for improved functionality
chore(extension-attach-artifact-release.yml): update script file versions to v0.4.1 for improved functionality
chore(extension-release-published.yml): update extension-release-prepare.yml version to v0.4.1 for improved functionality
chore(os-extension-test.yml): update sonar-pull-request.yml version to v0.4.1 for improved functionality
chore(package-deb.yml): update build-logic versions to v0.4.1 for improved functionality
chore(pro-extension-test.yml): set latest liquibase version to master-SNAPSHOT if nightly build is specified

* fix(pro-extension-test.yml): correct typo in description of nightly build option

The description of the nightly build option was misspelled as "nigthly" instead of "nightly". This commit fixes the typo to improve clarity and consistency in the codebase.

* chore(pro-extension-test.yml): fix typo in description of nightly option

* chore(os-extension-test.yml): add support for nightly builds against liquibase master-SNAPSHOT

feat(os-extension-test.yml): set latest liquibase version to master-SNAPSHOT if nightly flag is set
  • Loading branch information
jandroav authored Sep 1, 2023
1 parent 3e6b665 commit f199fa5
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
sonar:
uses: liquibase/build-logic/.github/workflows/sonar-push.yml@v0.3.9
uses: liquibase/build-logic/.github/workflows/sonar-push.yml@v0.4.1
secrets: inherit

create-release:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/extension-attach-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:

- name: Get Reusable Script Files
run: |
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.9/.github/get_draft_release.sh
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.9/.github/sign_artifact.sh
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.9/.github/upload_asset.sh
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.4.1/.github/get_draft_release.sh
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.4.1/.github/sign_artifact.sh
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.4.1/.github/upload_asset.sh
chmod +x $PWD/.github/get_draft_release.sh
chmod +x $PWD/.github/sign_artifact.sh
chmod +x $PWD/.github/upload_asset.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/extension-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ jobs:
maven-release:
needs: release
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.3.9
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.4.1
secrets: inherit
11 changes: 10 additions & 1 deletion .github/workflows/os-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
required: false
default: '["ubuntu-latest", "windows-latest"]'
type: string
nigthly:
description: 'Specifies nightly builds against liquibase master-SNAPSHOT'
required: false
default: false
type: boolean

jobs:
build:
Expand All @@ -28,6 +33,10 @@ jobs:
distribution: 'temurin'
cache: 'maven'

- name: Set latest liquibase version
if: ${{ inputs.nigthly }}
run: mvn versions:set-property -Dproperty=liquibase.version -DnewVersion=master-SNAPSHOT

- name: Build and Package
run: mvn -B dependency:go-offline clean package -DskipTests=true

Expand Down Expand Up @@ -89,5 +98,5 @@ jobs:
sonar-pr:
needs: [ unit-test ]
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.3.9
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.4.1
secrets: inherit
8 changes: 4 additions & 4 deletions .github/workflows/package-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
# Under the src folder is where specific packages files live. The GitHub action inputs will modify the universal package-deb-pom.xml to tell the process which assets to use during the packaging step
mkdir -p $PWD/.github/src/${{ inputs.artifactId }}/deb/control
mkdir -p $PWD/.github/src/${{ inputs.artifactId }}/main/archive
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/control https://raw.githubusercontent.com/liquibase/build-logic/v0.3.9/src/${{ inputs.artifactId }}/deb/control/control
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/postinst https://raw.githubusercontent.com/liquibase/build-logic/v0.3.9/src/${{ inputs.artifactId }}/deb/control/postinst
curl -o $PWD/.github/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.9/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh
curl -o $PWD/.github/package-deb-pom.xml https://raw.githubusercontent.com/liquibase/build-logic/v0.3.9/.github/package-deb-pom.xml
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/control https://raw.githubusercontent.com/liquibase/build-logic/v0.4.1/src/${{ inputs.artifactId }}/deb/control/control
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/postinst https://raw.githubusercontent.com/liquibase/build-logic/v0.4.1/src/${{ inputs.artifactId }}/deb/control/postinst
curl -o $PWD/.github/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.4.1/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh
curl -o $PWD/.github/package-deb-pom.xml https://raw.githubusercontent.com/liquibase/build-logic/v0.4.1/.github/package-deb-pom.xml
- name: Set up Maven
uses: stCarolas/[email protected]
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/pro-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
required: false
default: '["ubuntu-latest", "windows-latest"]'
type: string
nigthly:
description: 'Specifies nightly builds against liquibase master-SNAPSHOT'
required: false
default: false
type: boolean
secrets:
SONAR_TOKEN:
description: 'SONAR_TOKEN from the caller workflow'
Expand Down Expand Up @@ -48,6 +53,10 @@ jobs:
distribution: 'temurin'
cache: 'maven'

- name: Set latest liquibase version
if: ${{ inputs.nigthly }}
run: mvn versions:set-property -Dproperty=liquibase.version -DnewVersion=master-SNAPSHOT

- name: Build and Package
run: mvn -B dependency:go-offline clean package -DskipTests=true

Expand Down Expand Up @@ -109,5 +118,5 @@ jobs:
sonar-pr:
needs: [ unit-test ]
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.3.9
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.4.1
secrets: inherit

0 comments on commit f199fa5

Please sign in to comment.