Skip to content

697,698 : Create workflow for testing the latest Vert.x SQL client snapshots and re-enable DB2 tests #741

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

Merged
merged 2 commits into from
May 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 6 additions & 6 deletions .github/workflows/tracking-vertx-4.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
matrix:
example: [ 'session-example', 'native-sql-example' ]
db: [ 'MySQL', 'PostgreSQL' ]
vertx-version: [ '[4,5)' ]
vertx-version: [ '[4.0,4.1)','[4.1,4.2)' ]
exclude:
# 'native-sql-example' doesn't run on MySQL because it has native queries
- example: 'native-sql-example'
Expand Down Expand Up @@ -68,16 +68,16 @@ jobs:
java-version: 1.8
uses: actions/setup-java@v1
- name: Print the effective Vert.x version used
run: ./gradlew :${{ matrix.example }}:dependencyInsight --dependency io.vertx --configuration runtimeClasspath -PvertxVersion='${{ matrix.vertx-version }}'
run: ./gradlew :${{ matrix.example }}:dependencyInsight --dependency io.vertx --configuration runtimeClasspath -PvertxVersion='${{ matrix.vertx-version }}' -PenableSonatypeOpenSourceSnapshotsRep
- name: Run examples in '${{ matrix.example }}' on ${{ matrix.db }}
run: ./gradlew :${{ matrix.example }}:runAllExamplesOn${{ matrix.db }} -PvertxVersion='${{ matrix.vertx-version }}'
run: ./gradlew :${{ matrix.example }}:runAllExamplesOn${{ matrix.db }} -PvertxVersion='${{ matrix.vertx-version }}' -PenableSonatypeOpenSourceSnapshotsRep

test_dbs:
name: Test with ${{ matrix.db }} and latest Vert.x in ${{ matrix.vertx-version }}
runs-on: ubuntu-latest
strategy:
matrix:
vertx-version: ['[4,5)']
vertx-version: [ '[4.0,4.1)','[4.1,4.2)' ]
db: [ 'MariaDB', 'MySQL', 'PostgreSQL', 'DB2', 'CockroachDB' ]
steps:
- uses: actions/checkout@v2
Expand All @@ -86,6 +86,6 @@ jobs:
with:
java-version: 1.8
- name: Print the effective Vert.x version used
run: ./gradlew :hibernate-reactive-core:dependencyInsight --dependency io.vertx -PvertxVersion='${{ matrix.vertx-version }}'
run: ./gradlew :hibernate-reactive-core:dependencyInsight --dependency io.vertx -PvertxVersion='${{ matrix.vertx-version }}' -PenableSonatypeOpenSourceSnapshotsRep
- name: Build and Test with ${{ matrix.db }}
run: ./gradlew build -Pdb=${{ matrix.db }} -Pdocker -PvertxVersion='${{ matrix.vertx-version }}'
run: ./gradlew build -Pdb=${{ matrix.db }} -Pdocker -PvertxVersion='${{ matrix.vertx-version }}' -PenableSonatypeOpenSourceSnapshotsRep
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ subprojects {
// Only enable these for local development, never push it:
// mavenLocal()
// jcenter()
// maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
// Example: ./gradlew build -PenableSonatypeOpenSourceSnapshotsRep
if ( project.hasProperty('enableSonatypeOpenSourceSnapshotsRep') ) {
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
}
mavenCentral()

// Example: ./gradlew build -PenableJBossSnapshotsRep
Expand Down