Try getting macos action to work. #188
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will build a Java project with Maven | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
| # or https://github.com/actions/checkout and https://github.com/actions/setup-java | |
| # Note: JDK 8, 11, 17, 21 and 25 are Long-Term Support (LTS) releases and should always be tested against | |
| # Note: Oracle JDK is not supported on GitHub actions for JDK 8 and 11, so they are excluded | |
| name: Test with various JDK versions | |
| on: [push] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| distribution: | |
| - liberica | |
| - oracle | |
| java_version: | |
| - 8 | |
| - 11 | |
| - 17 | |
| - 21 | |
| - 25 | |
| - 26 | |
| exclude: | |
| - distribution: oracle | |
| java_version: 8 | |
| - distribution: oracle | |
| java_version: 11 | |
| services: | |
| monetdb_container: | |
| image: monetdb/monetdb:latest | |
| env: | |
| MDB_DAEMON_PASS: monetdb | |
| MDB_DB_ADMIN_PASS: monetdb | |
| ports: | |
| - 50000:50000 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java_version }} | |
| distribution: ${{ matrix.distribution }} | |
| - name: Build | |
| run: make | |
| - name: Create jar symlink | |
| run: ln -s monetdb-jdbc*.jar monetdb-jdbc.jar | |
| working-directory: jars | |
| - name: Run JDBC_API_Tester | |
| run: java -cp jars/monetdb-jdbc.jar:jars/jdbctests.jar JDBC_API_Tester 'jdbc:monetdb://localhost:50000/monetdb?user=monetdb&password=monetdb' | |
| - name: Run OnClientTester | |
| run: java -cp jars/monetdb-jdbc.jar:jars/jdbctests.jar OnClientTester 'jdbc:monetdb://localhost:50000/monetdb?user=monetdb&password=monetdb' -v |