Skip to content

Upload surefire reports as github artifacts if maven tests fail (#37) #36

Upload surefire reports as github artifacts if maven tests fail (#37)

Upload surefire reports as github artifacts if maven tests fail (#37) #36

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:
runner:
# https://github.com/actions/runner-images
- ubuntu-24.04
- windows-2025
- macos-14
java_version:
- 21
db_type:
- mongodb
- postgresql
# https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-expanding-configurations
# https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations
# https://docs.github.com/en/actions/reference/workflows-and-actions/expressions#operators
include:
- db_type: mongodb
db_version: 8
- runner: windows-2025
db_type: mongodb
db_version: 7 # depends on runner, see https://github.com/ankane/setup-mongodb
- db_type: postgresql
db_name: 'test'
db_username: 'test'
db_password: 'test'
db_port: 54321
uses: ./.github/workflows/maven-verify.yml
with:
runner: ${{ matrix.runner }}
java-version: ${{ matrix.java_version }}
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 || 0 }}
db-version: ${{ matrix.db_version || 0 }}