Skip to content
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

DAT 15505 Liquibase Extensions Parent POM #437

Merged
merged 52 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
00bc710
DAT-15505
Sep 12, 2023
fb0959d
chore(test.yml): add maven settings for Liquibase repositories and se…
Sep 12, 2023
951f2f3
fix(test.yml): fix indentation and formatting of repositories and ser…
Sep 12, 2023
28c901c
chore(test.yml): update maven settings XML to include Liquibase repos…
Sep 12, 2023
b0c5f33
chore(test.yml): downgrade maven-settings-xml-action to v20 to fix co…
Sep 12, 2023
fd5830f
chore(test.yml): add liquibase-super-pom repository and server config…
Sep 12, 2023
852fd90
chore(test.yml): remove unnecessary commas and fix indentation in the…
Sep 12, 2023
452a1f3
fix(test.yml): enable releases for liquibase-super-pom dependency to …
Sep 12, 2023
c4a16ff
chore(test.yml): add newline at the end of the file for consistency
Sep 12, 2023
bcf5758
chore(pom.xml): remove unnecessary newline at the end of the file for…
Sep 12, 2023
e4ce983
chore(test.yml): update maven-settings-xml-action to v21 to use the l…
Sep 12, 2023
edad78a
Merge branch 'main' into DAT-15505
jandroav Sep 18, 2023
a839fdc
chore(pom.xml): update parent artifactId from 'liquibase-super-pom' t…
Sep 18, 2023
106b434
chore(pom.xml): update mockito-junit-jupiter version to 4.8.0 for bet…
Sep 18, 2023
4c6a38a
chore(pom.xml): update mockito-core version to 4.11.0 for testing pur…
Sep 18, 2023
1e85939
chore(test.yml): remove unnecessary liquibase-super-pom dependency fr…
Sep 18, 2023
8c70c5d
chore(test.yml): remove unnecessary liquibase-super-pom configuration…
Sep 18, 2023
dba3470
Merge branch 'main' into DAT-15505
jandroav Sep 18, 2023
79f6c47
Merge branch 'main' into DAT-15505
jandroav Oct 18, 2023
6f7bf9f
Update pom.xml
jandroav Oct 18, 2023
de802ac
Update pom.xml
jandroav Oct 18, 2023
c7cf2d0
chore(workflows): update liquibase/build-logic workflows to version v…
Oct 19, 2023
34ef954
chore(test.yml): upgrade Maven version to 3.9.5 for build and integra…
Oct 19, 2023
4caa6c1
fix(test.yml): enable releases for liquibase and liquibase-pro depend…
Oct 19, 2023
ba63ae6
chore(test.yml): remove unused 'cache' option in the Maven setup step…
Oct 19, 2023
c6de06e
chore(test.yml): add caching for Maven to improve build performance
Oct 19, 2023
85b61ab
chore(test.yml): remove unnecessary newline at the end of the file to…
Oct 19, 2023
046531e
chore(test.yml): add dependency on 'build' job for 'harness-tests' jo…
Oct 19, 2023
694fe19
chore(test.yml): remove unused maven-settings-xml-action step to simp…
Oct 19, 2023
76ef612
chore(test.yml): update liquibase/build-logic version to v0.5.0 for b…
Oct 19, 2023
76bec7a
DAT-15505
Oct 19, 2023
789d2c4
chore(pom.xml): add parent pom for liquibase to manage dependencies a…
Oct 19, 2023
600eb10
chore(pom.xml): remove unused dependencies and properties to simplify…
Oct 19, 2023
076d608
chore(pom.xml): remove unused dependencies and plugins to simplify th…
Oct 19, 2023
929f144
chore(test.yml): update test workflow to use liquibase/build-logic ex…
Oct 19, 2023
2d57c4a
chore(test.yml): remove unit-test job from GitHub Actions workflow
Oct 19, 2023
83d44c5
chore(pom.xml): add slf4j-api and slf4j-simple dependencies for loggi…
Oct 19, 2023
87e0a1b
chore(pom.xml): update lombok version to 1.18.30 for better compatibi…
Oct 19, 2023
e93b892
chore(test.yml): remove unnecessary --file flag from mvn command in I…
Oct 19, 2023
292a43c
chore(pom.xml): remove maven-surefire-plugin configuration and depend…
Oct 19, 2023
6b68e61
chore(pom.xml): remove unused test dependencies to reduce project siz…
Oct 19, 2023
ae7004f
chore(pom.xml): remove unused dependencies to reduce project size and…
Oct 19, 2023
34bd649
chore(pom.xml): remove unused test dependencies
Oct 19, 2023
cad424a
chore(pom.xml): remove unused JUnit dependencies to reduce project de…
Oct 19, 2023
cc76062
chore(pom.xml): remove unused dependencies and plugins to simplify th…
Oct 19, 2023
b688d8e
chore(pom.xml): remove unused slf4j dependencies
Oct 19, 2023
8d46873
chore(pom.xml): add slf4j-api and slf4j-simple dependencies for testi…
Oct 19, 2023
dc8335a
chore(pom.xml): remove unnecessary comment line to improve code reada…
Oct 19, 2023
b88700a
chore(pom.xml): add db.connection.uri property with MongoDB connectio…
Oct 19, 2023
2c1cbcd
chore(test.yml): remove unnecessary 'needs: build' step from the work…
Oct 19, 2023
7e85409
chore(test.yml): update integration test command to include MongoDB c…
Oct 19, 2023
c164aed
chore(test.yml): update integration test command to use the 'run-its'…
Oct 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/attach-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ on:
jobs:

attach-artifact-to-release:
uses: liquibase/build-logic/.github/workflows/extension-attach-artifact-release.yml@v0.4.9
uses: liquibase/build-logic/.github/workflows/extension-attach-artifact-release.yml@v0.5.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
nightly-build:
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.4.9
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.5.0
with:
nightly: true
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ on:

jobs:
create-release:
uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.4.9
uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.5.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
release:
uses: liquibase/build-logic/.github/workflows/extension-release-published.yml@v0.4.9
uses: liquibase/build-logic/.github/workflows/extension-release-published.yml@v0.5.0
secrets: inherit

deploy_xsd:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snyk-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ on:

jobs:
security-scan:
uses: liquibase/build-logic/.github/workflows/synk-nightly.yml@v0.4.9
uses: liquibase/build-logic/.github/workflows/synk-nightly.yml@v0.5.0
secrets: inherit
168 changes: 3 additions & 165 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,177 +10,15 @@ on:

jobs:
build:
name: Build & Package
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LIQUIBOT_TOKEN: ${{ secrets.LIQUIBOT_PAT }}
GPM_USERNAME: "liquibot"
GPM_PASSWORD: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
# look for dependencies in maven
- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v21
with:
repositories: |
[
{
"id": "liquibase",
"url": "https://maven.pkg.github.com/liquibase/liquibase",
"releases": {
"enabled": "false"
},
"snapshots": {
"enabled": "true",
"updatePolicy": "always"
}
},
{
"id": "liquibase-pro",
"url": "https://maven.pkg.github.com/liquibase/liquibase-pro",
"releases": {
"enabled": "false"
},
"snapshots": {
"enabled": "true",
"updatePolicy": "always"
}
}
]
servers: |
[
{
"id": "liquibase-pro",
"username": "liquibot",
"password": "${{ secrets.LIQUIBOT_PAT }}"
},
{
"id": "liquibase",
"username": "liquibot",
"password": "${{ secrets.LIQUIBOT_PAT }}"
}
]

- 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:
strategy:
fail-fast: false
matrix:
java: [ 8, 11, 17, 18 ]
os: [ ubuntu-latest, windows-latest ]
name: Test Java ${{ matrix.java }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
LIQUIBOT_TOKEN: ${{ secrets.LIQUIBOT_PAT }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
needs: build
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'

# look for dependencies in maven
- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v21
with:
repositories: |
[
{
"id": "liquibase",
"url": "https://maven.pkg.github.com/liquibase/liquibase",
"releases": {
"enabled": "false"
},
"snapshots": {
"enabled": "true",
"updatePolicy": "always"
}
},
{
"id": "liquibase-pro",
"url": "https://maven.pkg.github.com/liquibase/liquibase-pro",
"releases": {
"enabled": "false"
},
"snapshots": {
"enabled": "true",
"updatePolicy": "always"
}
}
]
servers: |
[
{
"id": "liquibase-pro",
"username": "liquibot",
"password": "${{ secrets.LIQUIBOT_PAT }}"
},
{
"id": "liquibase",
"username": "liquibot",
"password": "${{ secrets.LIQUIBOT_PAT }}"
}
]

- 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

- name: Archive Test Results - ${{ matrix.os }}
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: test-reports-jdk-${{ matrix.java }}-${{ matrix.os }}
path: |
**/target/surefire-reports
**/target/jacoco.exec
uses: liquibase/build-logic/.github/workflows/[email protected]
secrets: inherit

integration-tests:
name: Integration Test - Java ${{ matrix.java }}
runs-on: ubuntu-latest
env:
LIQUIBOT_TOKEN: ${{ secrets.LIQUIBOT_PAT }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
needs: unit-test
strategy:
matrix:
java: [8, 11, 17]
Expand Down Expand Up @@ -336,4 +174,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: mongodb-test-results
path: build/spock-reports
path: build/spock-reports
Loading
Loading