From d012c7380b56d30dafd9b97fec37d8f235fea643 Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Tue, 2 Jul 2024 14:33:53 -0700 Subject: [PATCH] fix: fixing tests on main (#41) * fix: fixing tests on main * chore: fixing test on main * fix: fixing repo * fix: fixing repo validation * fix: fixing reusable test * fix: fixing reusable repo test --- .github/workflows/reusable-tests-repo.yml | 25 ++++++++--------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/reusable-tests-repo.yml b/.github/workflows/reusable-tests-repo.yml index 8cc0f64..c95ecf5 100644 --- a/.github/workflows/reusable-tests-repo.yml +++ b/.github/workflows/reusable-tests-repo.yml @@ -10,8 +10,12 @@ jobs: outputs: semver: ${{ steps.semver.outputs.version }} tag: ${{ steps.semver.outputs.tag }} + pr: ${{ steps.pr.outputs.pr }} steps: # steps.semver.outputs.tag => needs.vars.outputs.semver + - name: PR Number + id: pr + uses: bcgov-nr/action-get-pr@v0.0.1 - uses: actions/checkout@v4 with: ref: refs/heads/${{ github.event.repository.default_branch }} @@ -76,24 +80,11 @@ jobs: # Java builds - name: Build Core working-directory: core - run: mvn clean package + run: mvn clean package install -DskipTests -Dtests.skip=true - - name: Build Spring - if: github.event_name != 'pull_request' - uses: nick-fields/retry@v2 - with: - max_attempts: 3 - retry_on: error - timeout_minutes: 10 - retry_wait_seconds: 90 - command: | - cd spring - mvn clean package -Dcore.version=${{ needs.vars.outputs.semver }} - - - name: Build Spring - if: github.event_name == 'pull_request' + - name: Build Spring working-directory: spring - run: mvn clean package -Dcore.version=${{ needs.vars.outputs.semver }}.PR${{ github.event.number }} - + run: mvn clean package -DskipTests -Dtests.skip=true + - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3