From a88bb99cf3f63763b9ba2ca22ad7c4b9730f7bbe Mon Sep 17 00:00:00 2001 From: Ronny Polley Date: Fri, 13 Oct 2023 21:38:47 +0200 Subject: [PATCH] enhanced the ifs in the steps also build the stuff from push-events --- .github/workflows/main-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-build.yml b/.github/workflows/main-build.yml index fbae2bc..d1c4dca 100644 --- a/.github/workflows/main-build.yml +++ b/.github/workflows/main-build.yml @@ -30,12 +30,12 @@ jobs: - name: Run Integration Tests run: mvn -B -Prun-its verify -ntp --file pom.xml - name: Publish Test Report - if: contains(github.event.pull_request.labels.*.name, 'save to build') + if: contains(github.event.pull_request.labels.*.name, 'save to build') || github.event_name == 'push' uses: scacap/action-surefire-report@v1 env: github_token: ${{ secrets.GITHUB_TOKEN }} - name: Analyze with SonarCloud.io - if: contains(github.event.pull_request.labels.*.name, 'save to build') + if: contains(github.event.pull_request.labels.*.name, 'save to build') || github.event_name == 'push' env: JAVA_HOME: ${{ env.JAVA_HOME_11_X64 }} run: mvn -ntp -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.token=${{ secrets.SONAR_TOKEN }}