Mercurial > hg > monetdb-java
annotate .github/workflows/jdkversions.yml @ 980:7f93f3dbdd78 default tip
Adapt expected output for servers 11.54 or higher
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Wed, 09 Jul 2025 15:06:30 +0200 (3 weeks ago) |
parents | f19623e0f527 |
children |
rev | line source |
---|---|
745
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
1 # This workflow will build a Java project with Maven |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
2 # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven |
892
86417297dd9e
Update used monetdb_container
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
891
diff
changeset
|
3 # or https://github.com/actions/checkout and https://github.com/actions/setup-java |
745
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
4 |
892
86417297dd9e
Update used monetdb_container
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
891
diff
changeset
|
5 # Note: Oracle JDK is only supported for JDK 17, 21 and later |
780
3b09f0c93cdd
Oracle JDK is only supported for JDK 17 and later
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
779
diff
changeset
|
6 |
745
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
7 name: Test with various JDK versions |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
8 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
9 on: [push] |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
10 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
11 jobs: |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
12 test: |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
13 runs-on: ubuntu-latest |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
14 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
15 strategy: |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
16 fail-fast: false |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
17 matrix: |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
18 distribution: |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
19 - liberica |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
20 - oracle |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
21 java_version: |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
22 - 8 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
23 - 11 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
24 - 17 |
779
c134c1dfc223
Add java/jdk 21, remove old 14 and 19.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
775
diff
changeset
|
25 - 21 |
897
9b9b3dfba916
Add JDK 22 to test. It has been released on 19 March 2024.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
892
diff
changeset
|
26 - 22 |
930
8611e23d2771
Add testing against Aug2024 release and JDK 23 release
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
897
diff
changeset
|
27 - 23 |
971
cddabb01fe12
Extend github workflows to test against JDK24 and MonetDB Mar2025 release
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
930
diff
changeset
|
28 - 24 |
745
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
29 exclude: |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
30 - distribution: oracle |
780
3b09f0c93cdd
Oracle JDK is only supported for JDK 17 and later
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
779
diff
changeset
|
31 java_version: 8 |
3b09f0c93cdd
Oracle JDK is only supported for JDK 17 and later
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
779
diff
changeset
|
32 - distribution: oracle |
745
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
33 java_version: 11 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
34 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
35 services: |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
36 monetdb_container: |
972
f19623e0f527
Update docker images names
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
971
diff
changeset
|
37 image: monetdb/monetdb:latest |
745
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
38 env: |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
39 MDB_DAEMON_PASS: monetdb |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
40 MDB_DB_ADMIN_PASS: monetdb |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
41 ports: |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
42 - 50000:50000 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
43 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
44 steps: |
891
df43df2ad486
Update GH actions to v4
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
780
diff
changeset
|
45 - uses: actions/checkout@v4 |
745
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
46 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
47 - name: Set up JDK |
891
df43df2ad486
Update GH actions to v4
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
780
diff
changeset
|
48 uses: actions/setup-java@v4 |
745
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
49 with: |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
50 java-version: ${{ matrix.java_version }} |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
51 distribution: ${{ matrix.distribution }} |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
52 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
53 - name: Build |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
54 run: make |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
55 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
56 - name: Create jar symlink |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
57 run: ln -s monetdb-jdbc*.jar monetdb-jdbc.jar |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
58 working-directory: jars |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
59 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
60 - name: Run JDBC_API_Tester |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
61 run: java -cp jars/monetdb-jdbc.jar:jars/jdbctests.jar JDBC_API_Tester 'jdbc:monetdb://localhost:50000/monetdb?user=monetdb&password=monetdb' |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
62 |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
63 - name: Run OnClientTester |
81f01eb1e2ad
Add GitHub Action to test building with various JDK versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
64 run: java -cp jars/monetdb-jdbc.jar:jars/jdbctests.jar OnClientTester 'jdbc:monetdb://localhost:50000/monetdb?user=monetdb&password=monetdb' -v |