Mercurial > hg > monetdb-java
annotate .github/workflows/monetdbversions.yml @ 973:32f246853ec4 default tip
Optimisation, call connection.mapClobAsVarChar() and connection.mapBlobAsVarBinary() outside the for-loop, as it does not change.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 10 Apr 2025 19:26:59 +0200 (3 days ago) |
parents | f19623e0f527 |
children |
rev | line source |
---|---|
744
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
1 # This workflow will build a Java project with Maven |
6a3cdd51a465
Add GitHub Action to test against various MonetDB 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 |
893
3b215a009634
Extend testing also against Jul2021
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 |
744
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
4 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
5 name: Test with various MonetDB versions |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
6 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
7 on: [push] |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
8 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
9 jobs: |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
10 test: |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
11 runs-on: ubuntu-latest |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
12 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
13 strategy: |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
14 fail-fast: false |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
15 matrix: |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
16 monetdbversion: |
972
f19623e0f527
Update docker images names
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
971
diff
changeset
|
17 - "monetdb/monetdb:Jan2022-SP4" |
f19623e0f527
Update docker images names
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
971
diff
changeset
|
18 - "monetdb/monetdb:Sep2022-SP3" |
f19623e0f527
Update docker images names
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
971
diff
changeset
|
19 - "monetdb/monetdb:Jun2023-SP3" |
f19623e0f527
Update docker images names
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
971
diff
changeset
|
20 - "monetdb/monetdb:Dec2023-SP4" |
f19623e0f527
Update docker images names
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
971
diff
changeset
|
21 - "monetdb/monetdb:Aug2024-SP2" |
f19623e0f527
Update docker images names
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
971
diff
changeset
|
22 - "monetdb/monetdb:Mar2025" |
f19623e0f527
Update docker images names
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
971
diff
changeset
|
23 - "monetdb/monetdb:latest" |
744
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
24 - "monetdb/dev-builds:default" |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
25 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
26 services: |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
27 monetdb_container: |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
28 image: ${{ matrix.monetdbversion }} |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
29 env: |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
30 MDB_DAEMON_PASS: monetdb |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
31 MDB_DB_ADMIN_PASS: monetdb |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
32 ports: |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
33 - 50000:50000 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
34 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
35 steps: |
891
df43df2ad486
Update GH actions to v4
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
828
diff
changeset
|
36 - uses: actions/checkout@v4 |
744
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
37 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
38 - name: Set up JDK |
891
df43df2ad486
Update GH actions to v4
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
828
diff
changeset
|
39 uses: actions/setup-java@v4 |
744
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
40 with: |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
41 java-version: 8 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
42 distribution: liberica |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
43 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
44 - name: Build |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
45 run: make |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
46 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
47 - name: Create jar symlink |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
48 run: ln -s monetdb-jdbc*.jar monetdb-jdbc.jar |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
49 working-directory: jars |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
50 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
51 - name: Run JDBC_API_Tester |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
52 run: java -cp jars/monetdb-jdbc.jar:jars/jdbctests.jar JDBC_API_Tester 'jdbc:monetdb://localhost:50000/monetdb?user=monetdb&password=monetdb' |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
53 |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
54 - name: Run OnClientTester |
6a3cdd51a465
Add GitHub Action to test against various MonetDB versions
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
55 run: java -cp jars/monetdb-jdbc.jar:jars/jdbctests.jar OnClientTester 'jdbc:monetdb://localhost:50000/monetdb?user=monetdb&password=monetdb' -v |