From f199fa578cf3ced2bf16d176c56b117b4e78b35b Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Fri, 1 Sep 2023 15:34:41 +0200 Subject: [PATCH] DAT-15348 DevOps :: run nightly builds for extensions against core master-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 --- .github/workflows/create-release.yml | 2 +- .../workflows/extension-attach-artifact-release.yml | 6 +++--- .github/workflows/extension-release-published.yml | 2 +- .github/workflows/os-extension-test.yml | 11 ++++++++++- .github/workflows/package-deb.yml | 8 ++++---- .github/workflows/pro-extension-test.yml | 11 ++++++++++- 6 files changed, 29 insertions(+), 11 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 812749b6..87c864b6 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -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: diff --git a/.github/workflows/extension-attach-artifact-release.yml b/.github/workflows/extension-attach-artifact-release.yml index d2dd090c..3b8d627b 100644 --- a/.github/workflows/extension-attach-artifact-release.yml +++ b/.github/workflows/extension-attach-artifact-release.yml @@ -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 diff --git a/.github/workflows/extension-release-published.yml b/.github/workflows/extension-release-published.yml index a74995ac..dba2e183 100644 --- a/.github/workflows/extension-release-published.yml +++ b/.github/workflows/extension-release-published.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/os-extension-test.yml b/.github/workflows/os-extension-test.yml index 9ae3ca7f..54832d24 100644 --- a/.github/workflows/os-extension-test.yml +++ b/.github/workflows/os-extension-test.yml @@ -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: @@ -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 @@ -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 \ No newline at end of file diff --git a/.github/workflows/package-deb.yml b/.github/workflows/package-deb.yml index dca42b8b..df0a7801 100644 --- a/.github/workflows/package-deb.yml +++ b/.github/workflows/package-deb.yml @@ -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/setup-maven@v4.5 diff --git a/.github/workflows/pro-extension-test.yml b/.github/workflows/pro-extension-test.yml index 1049d70b..2eecb520 100644 --- a/.github/workflows/pro-extension-test.yml +++ b/.github/workflows/pro-extension-test.yml @@ -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' @@ -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 @@ -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 \ No newline at end of file