diff --git a/.gitea/workflows/deploy_in_prod.yml b/.gitea/workflows/deploy_in_prod.yml index 96ac412..17000ed 100644 --- a/.gitea/workflows/deploy_in_prod.yml +++ b/.gitea/workflows/deploy_in_prod.yml @@ -15,14 +15,35 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 + + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Cache node modules + id: cache-npm + uses: actions/cache@v4 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- - name: Set up JDK 17 - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: java-version: '21' distribution: 'graalvm' - cache: 'maven' - name: Set up Node.js uses: actions/setup-node@v4 diff --git a/src/main/java/fr/titionfire/ffsaf/domain/service/StatsService.java b/src/main/java/fr/titionfire/ffsaf/domain/service/StatsService.java index 0f08139..9d9c24a 100644 --- a/src/main/java/fr/titionfire/ffsaf/domain/service/StatsService.java +++ b/src/main/java/fr/titionfire/ffsaf/domain/service/StatsService.java @@ -36,7 +36,7 @@ public class StatsService { LicenceStats.YearStats yearStats = stats.getLicences().get(licence.getSaison()); - System.out.println("stats: " + licence.getMembre().getFname()); + // System.out.println("stats: " + licence.getMembre().getFname()); if (licence.isValidate()) { if (licence.getMembre().getGenre() == Genre.H) yearStats.addH(); diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 5ffd4f2..3fe3d56 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -9,7 +9,7 @@ quarkus.hibernate-orm.physical-naming-strategy=fr.titionfire.ffsaf.data.SafcaNam quarkus.hibernate-orm.dialect=fr.titionfire.ffsaf.data.CustomPostgreSQLDialect -quarkus.http.cors=true +quarkus.http.cors.enabled=true quarkus.quartz.start-mode=forced %dev.pdf-maker.jar-path=src\\main\\pdf_gen\\target\\pdf_gen-1.0-SNAPSHOT-jar-with-dependencies.jar