Skip to content

Build and Test With Maven [3.1.x] #5

Build and Test With Maven [3.1.x]

Build and Test With Maven [3.1.x] #5

Workflow file for this run

name: Build and Test With Maven [3.1.x]
on:
workflow_dispatch:
inputs:
databaseType:
type: choice
required: true
options:
- MySQL
- Mariadb
- MSSQL
- PostgreSQL
- Oracle
- All
- None
jobs:
maven-build:
concurrency:
group: reactive-mybais-support
cancel-in-progress: false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Build With Maven
run: mvn clean compile package -DskipTests --file pom.xml
- name: Setup Testcontainers Cloud Client
if: ${{ github.event.inputs.databaseType != 'None' }}
uses: atomicjar/testcontainers-cloud-setup-action@v1
with:
token: ${{ secrets.TC_CLOUD_TOKEN }}
- name: Run Tests With MySQLContainer
if: ${{ contains(fromJSON('["All", "MySQL"]'), github.event.inputs.databaseType) }}
run: mvn -B -DargLine="-DdatabaseType=MySQLContainer" test
- name: Run Tests With MariaDBContainer
if: ${{ contains(fromJSON('["All", "Mariadb"]'), github.event.inputs.databaseType) }}
run: mvn -B -DargLine="-DdatabaseType=MariaDBContainer" test
- name: Run Tests With PostgreSQLContainer
if: ${{ contains(fromJSON('["All", "PostgreSQL"]'), github.event.inputs.databaseType) }}
run: mvn -B -DargLine="-DdatabaseType=PostgreSQLContainer" test
- name: Run Tests With MSSQLServerContainer
if: ${{ contains(fromJSON('["All", "MSSQL"]'), github.event.inputs.databaseType) }}
run: mvn -B -DargLine="-DdatabaseType=MSSQLServerContainer" test
- name: Run Tests With OracleContainer
if: ${{ contains(fromJSON('["All", "Oracle"]'), github.event.inputs.databaseType) }}
run: mvn -B -DargLine="-DdatabaseType=OracleContainer" test