Skip to content

Create maven.yml

Create maven.yml #33

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Start MySQL with Docker Compose
run: |
docker-compose -f atelier3/commons/src/main/resources/database/docker-compose.yml up -d
export DB_PASSWORD=$DB_PASSWORD
- name: Verify Commons with Maven
run: mvn -B verify --file atelier3/commons/pom.xml
- name: Maven Install Commons
run : mvn -B install --file atelier3/commons/pom.xml
- name: Maven dependency
run : mvn dependency:tree
- name: Verify Game with Maven
run: mvn -B verify --file atelier3/game-server/pom.xml
- name: Verify Card with Maven
run: mvn -e -B verify --file atelier3/card-server/pom.xml
- name: Verify Auth with Maven
run: mvn -B verify --file atelier3/auth-server/pom.xml
- name: Verify User with Maven
run: mvn -B verify --file atelier3/user-server/pom.xml