Skip to content

Make db-type and db-version required for maven-verify workflow #45

Make db-type and db-version required for maven-verify workflow

Make db-type and db-version required for maven-verify workflow #45

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
# db-version: 17
uses: ./.github/workflows/maven-verify.yml

Check failure on line 42 in .github/workflows/test-maven-verify.yml

View workflow run for this annotation

GitHub Actions / test-maven-verify.yml

Invalid workflow file

The workflow is not valid. In .github/workflows/test-maven-verify.yml (Line: 42, Col: 11): Error from called workflow FAIRDataTeam/github-workflows/.github/workflows/maven-verify.yml@b54fbbed2eb0c4eb77ed9a2c7d35c5dcf8a3336f (Line: 52, Col: 18): Unexpected value ''
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 }}