Skip to content
Open
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
18 changes: 15 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,35 @@ jobs:
run: ./gradlew checkstyleMain checkstyleTest

build:
runs-on: ubuntu-latest
needs: [check]
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
pg: [10, 11, 12, 13]
jdk: [8, 11]
runs-on: ${{ matrix.os }}
needs: [check]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}

- name: Setup PostgreSQL SSL Permissions
if: ${{ matrix.os != 'windows-latest' }}
run: |
chmod 0400 ./driver/src/test/resources/certdir/server/server.key
sudo chown 70:70 ./driver/src/test/resources/certdir/server/server.key
- name: Build & Test
run: ./gradlew -PpostgresVersions=${{ matrix.pg }} test -x checkstyleMain -x checkstyleTest
run: ./gradlew --stacktrace -PpostgresVersions=${{ matrix.pg }} test -x checkstyleMain -x checkstyleTest

- name: Updload Reports
uses: actions/upload-artifact@v2
if: always()
with:
name: reports
path: |
**/build/reports/
**/build/test-results/

deploy:
needs: [check, build]
Expand Down
2 changes: 1 addition & 1 deletion driver/src/build/testing.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fun checkServerKeyPermissions(): Boolean {
}
return true
}
catch(x: IOException) {
catch(x: Throwable) {
project.logger.warn(
"DISABLING SSL, unable to determine required owner/permissions for $serverKey"
)
Expand Down