Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ on:
required: false
type: number
db-version:
default: 5
default: 8
required: false
type: number

Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Check MongoDB
if: inputs.db-type == 'mongodb'
run: |
mongo --eval "db.version()"
${{ inputs.db-version < 6 && 'mongo' || 'mongosh' }} --eval "db.version()"

- # https://github.com/actions/setup-java
name: Setup Java
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/test-maven-verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: test-maven-verify.yml
on:
push:
branches:
- main
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
strategy:
matrix:
java:
- 17
- 21
db:
- type: mongodb
name: '' # not used for mongo
username: '' # not used for mongo
password: '' # not used for mongo
port: 0 # not used for mongo
version: 8
- type: postgresql
name: 'test'
username: 'test'
password: 'test'
port: 5432
version: 0 # not used for postgres
uses: ./.github/workflows/maven-verify.yml
with:
runner: ubuntu-24.04
java-version: ${{ matrix.java }}
db-type: ${{ matrix.db.type }}
db-name: ${{ matrix.db.name }}
db-username: ${{ matrix.db.username }}
db-password: ${{ matrix.db.password }}
db-port: ${{ matrix.db.port }}
db-version: ${{ matrix.db.version }}
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- This is a minimal pom file, just for testing purposes. -->
<!-- https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Minimal_POM -->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.fairdatateam.test</groupId>
<artifactId>test-maven-verify-workflow</artifactId>
<version>1</version>
</project>