-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.58 KB
/
Copy pathtest-maven-verify.yml
File metadata and controls
51 lines (49 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
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 }}