From f344e6674ca7620cc0c0ceb065cd491e1fd98d82 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 25 Jul 2024 15:46:26 +0200 Subject: [PATCH] CI: Run production build which is required for dependency:tree Signed-off-by: Stefan Weil --- .github/workflows/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4cf25d0fd43..33bc64d07f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,8 +35,8 @@ jobs: cp $GITHUB_WORKSPACE/config/database.yml.actions $GITHUB_WORKSPACE/config/database.yml cp $GITHUB_WORKSPACE/Kitodo-DataManagement/src/main/resources/db/config/flyway.properties.actions $GITHUB_WORKSPACE/Kitodo-DataManagement/src/main/resources/db/config/flyway.properties mkdir -p $GITHUB_WORKSPACE/config-local - cp $GITHUB_WORKSPACE/Kitodo/src/main/resources/kitodo_config.properties $GITHUB_WORKSPACE/config-local - cp $GITHUB_WORKSPACE/Kitodo/src/main/resources/kitodo_projects.xml $GITHUB_WORKSPACE/config-local + # cp $GITHUB_WORKSPACE/Kitodo/src/main/resources/kitodo_config.properties $GITHUB_WORKSPACE/config-local + # cp $GITHUB_WORKSPACE/Kitodo/src/main/resources/kitodo_projects.xml $GITHUB_WORKSPACE/config-local # Runs a set of commands using the runners shell - name: start mysql @@ -71,15 +71,15 @@ jobs: mvn --version - name: Run dependency:analyze run: - mvn -B dependency:analyze + mvn -B '-P!development' dependency:analyze - name: Run production build (required for dependency tree) run: | - sudo mkdir -p /usr/local/kitodo/modules - ls -l /usr/local/kitodo $GITHUB_WORKSPACE - mvn -B clean install + # sudo mkdir -p /usr/local/kitodo/modules + # ls -l /usr/local/kitodo $GITHUB_WORKSPACE + mvn -B '-P!development' clean install - name: Run dependency:tree run: - mvn -B dependency:tree + mvn -B '-P!development' dependency:tree - name: run build run: mvn clean install -B '-Pall-tests,flyway,checkstyle,!development' && xvfb-run --server-args="-screen 0 1600x1280x24" mvn clean install -B '-Pselenium,!development'