From 09e604bb2bba41bd6698d2acbb6865af3b08584b Mon Sep 17 00:00:00 2001 From: paduin Date: Tue, 10 Jun 2025 16:19:01 +0200 Subject: [PATCH] Added skip test option to get a image to debug quicker --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b42778f..ea7d1334 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,14 @@ on: description: "The branch to use to build a SNAPSHOT from." required: true default: "main" + skip-tests: + type: choice + description: Whether to skip tests? + required: false + options: + - "true" + - "false" + default: "false" jobs: deploy: name: Build SNAPSHOT to Sonatype @@ -33,7 +41,7 @@ jobs: settings-path: ${{ github.workspace }} - name: Run Maven Targets - run: mvn deploy jacoco:report checkstyle:checkstyle spotbugs:spotbugs --settings $GITHUB_WORKSPACE/settings.xml --batch-mode --show-version --no-transfer-progress --activate-profiles sonatype-oss-release-github-actions + run: mvn deploy -DskipTests=${{ github.event.inputs.skip-tests }} jacoco:report checkstyle:checkstyle spotbugs:spotbugs --settings $GITHUB_WORKSPACE/settings.xml --batch-mode --show-version --no-transfer-progress --activate-profiles sonatype-oss-release-github-actions env: SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}