-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix nightly builds #187
Merged
Merged
Fix nightly builds #187
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
16a5c68
chore(workflows): update liquibase/build-logic workflows to latest ve…
05bb2c3
fix(build-nightly.yml): fix typo in workflow file name from oss-exten…
9cb85f2
chore(attach-artifact-release.yml): update liquibase/build-logic exte…
55dd1a2
Merge branch 'main' into fix-nightly-builds
77b8bb8
chore(create-release.yml): update liquibase/build-logic version from …
31b1fef
Merge branch 'fix-nightly-builds' of https://github.com/liquibase/liq…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ on: | |
|
||
jobs: | ||
attach-artifact-to-release: | ||
uses: liquibase/build-logic/.github/workflows/[email protected].1 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
secrets: inherit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ on: | |
|
||
jobs: | ||
nightly-build: | ||
uses: liquibase/build-logic/.github/workflows/[email protected].1 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
with: | ||
nightly: true | ||
extraMavenArgs: -Dtest="RedshiftDatabaseTest" | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ on: | |
|
||
jobs: | ||
create-release: | ||
uses: liquibase/build-logic/.github/workflows/[email protected].1 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
secrets: inherit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ on: | |
|
||
jobs: | ||
release: | ||
uses: liquibase/build-logic/.github/workflows/[email protected].1 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,176 +7,10 @@ on: | |
- opened | ||
- reopened | ||
- synchronize | ||
|
||
jobs: | ||
build: | ||
name: Build & Package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Set latest liquibase version | ||
if: ${{ inputs.nightly }} | ||
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 | ||
|
||
- name: Get Artifact ID | ||
id: get-artifact-id | ||
run: echo "::set-output name=artifact_id::$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)" | ||
|
||
- name: Save Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ steps.get-artifact-id.outputs.artifact_id }}-artifacts | ||
path: | | ||
target/* | ||
|
||
- name: Save Event File | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Event File | ||
path: ${{ github.event_path }} | ||
|
||
outputs: | ||
artifact_id: ${{ steps.get-artifact-id.outputs.artifact_id }} | ||
|
||
unit-test: | ||
name: Test Java ${{ matrix.java }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [ 8, 11, 17 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{needs.build.outputs.artifact_id}}-artifacts | ||
path: ./target | ||
|
||
- name: Run Tests | ||
run: mvn -B jacoco:prepare-agent surefire:test -Dtest="RedshiftDatabaseTest" -DfailIfNoTests=true | ||
|
||
- name: Archive Test Results | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-reports-jdk-${{ matrix.java }} | ||
path: | | ||
**/target/surefire-reports | ||
**/target/jacoco.exec | ||
|
||
sonar-pr: | ||
needs: [ unit-test ] | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
secrets: inherit | ||
|
||
dependabot: | ||
needs: unit-test | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
jobs: | ||
build-test: | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
secrets: inherit | ||
|
||
# prepare-database: | ||
# name: Clean and initialize database | ||
# needs: build | ||
# runs-on: ubuntu-latest | ||
# container: | ||
# image: liquibase/liquibase:latest | ||
# | ||
# strategy: | ||
# fail-fast: false | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# | ||
# - name: Download Artifacts | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: liquibase-redshift-artifacts | ||
# | ||
# - name: Download AWS Redshift driver | ||
# run: wget https://s3.amazonaws.com/redshift-downloads/drivers/jdbc/2.1.0.14/redshift-jdbc42-2.1.0.14.jar | ||
# | ||
# - name: Add Redshift extension and driver to liquibase classpath | ||
# run: | | ||
# cp redshift-jdbc42-2.1.0.14.jar /liquibase/lib/ | ||
# cp liquibase-redshift-0-SNAPSHOT.jar /liquibase/lib/ | ||
# | ||
# - name: Clean AWS Redshift Database | ||
# run: liquibase --username="${{ secrets.TH_DB_ADMIN }}" --password="${{ secrets.TH_DB_PASSWD }}" --url="${{ secrets.TH_REDSHIFTURL }}" dropAll | ||
# | ||
# - name: Init Database | ||
# run: liquibase --classpath="src/test/resources" --changeLogFile="harness.initScript.sql" --username="${{ secrets.TH_DB_ADMIN }}" --password="${{ secrets.TH_DB_PASSWD }}" --url="${{ secrets.TH_REDSHIFTURL }}" update | ||
|
||
# integration-test: | ||
# name: Test Harness for Redshift ${{ matrix.redshift }} | ||
# needs: prepare-database | ||
# runs-on: ubuntu-latest | ||
# env: | ||
# LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.PRO_LICENSE_KEY }} | ||
# | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# redshift: [ "" ] | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# | ||
# - name: Set up JDK | ||
# uses: actions/setup-java@v3 | ||
# with: | ||
# java-version: 11 | ||
# distribution: 'temurin' | ||
# cache: 'maven' | ||
# | ||
# - name: Build Cache | ||
# uses: actions/[email protected] | ||
# with: | ||
# key: build-${{ github.run_number }}-${{ github.run_attempt }} | ||
# path: | | ||
# **/target/** | ||
# ~/.m2/repository/org/liquibase/ | ||
# | ||
# - name: Debug | ||
# run: | | ||
# pwd | ||
# ls -l | ||
# ls -l ~/.m2/repository/org/liquibase/liquibase-commercial/ | ||
# mvn dependency:tree | ||
# | ||
# - name: Harness Test Run | ||
# run: mvn -Dtest="LiquibaseHarnessSuiteIT" -DdbName=redshift -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl=${{secrets.TH_REDSHIFTURL}} test | ||
# | ||
# - name: Foundational Harness Test Run | ||
# run: mvn -Dtest="LiquibaseHarnessFoundationalSuiteTest" -DdbName=redshift -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl=${{secrets.TH_REDSHIFTURL}} test | ||
# | ||
# - name: Advanced Harness Test Run | ||
# run: mvn -Dtest="LiquibaseHarnessAdvancedSuiteTest" -DdbName=redshift -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl=${{secrets.TH_REDSHIFTURL}} test | ||
# | ||
# - name: Archive Redshift Test Results | ||
# if: ${{ always() }} | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: redshift-test-results | ||
# path: build/spock-reports | ||
with: | ||
extraMavenArgs: -Dtest="RedshiftDatabaseTest" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use latest build logic version which is
0.5.6