feat: Setup Spring JDBC for local kms #236
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: Run CI | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
gradle: | |
strategy: | |
matrix: | |
# Removed windows, because build failing with docker network. "bridge" network driver is not supported for Windows containers | |
# os: [ ubuntu-latest, windows-latest ] | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: adopt-hotspot | |
java-version: 17 | |
- name: Build the stack | |
run: docker compose -f docker-compose.yaml up db -d | |
env: | |
DATASOURCE_USER: ${{ secrets.DATASOURCE_USER }} | |
DATASOURCE_PASSWORD: ${{ secrets.DATASOURCE_PASSWORD }} | |
DATASOURCE_URL: ${{ secrets.DATASOURCE_URL }} | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Grant execute permission for Gradlew (Linux/Mac) | |
if: runner.os != 'Windows' | |
run: chmod +x ./gradlew | |
- name: Execute Gradle build | |
run: ./gradlew build | |
env: | |
DATASOURCE_USER: ${{ secrets.DATASOURCE_USER }} | |
DATASOURCE_PASSWORD: ${{ secrets.DATASOURCE_PASSWORD }} | |
DATASOURCE_URL: ${{ secrets.DATASOURCE_URL }} |