Build and Test With Maven [2.x] #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test With Maven [2.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 8 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
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 |