Skip to content

ci pipeline

ci pipeline #4

Workflow file for this run

name: Hexagonal CI Pipeline (Java 25)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:9.5
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: HexagonalProductions
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup JDK 25
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
cache: maven
- name: Build and Verify
run: mvn clean verify
env:
SPRING_DATASOURCE_URL: jdbc:mysql://localhost:3306/HexagonalProductions
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
- name: Build Docker Image
run: docker build -t hexagonal-app:latest .