Skip to content

Commit

Permalink
fix: fixing tests on main (#41)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
paulushcgcj authored Jul 2, 2024
1 parent 289b950 commit d012c73
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/reusable-tests-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: actions/checkout@v4
with:
ref: refs/heads/${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -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

0 comments on commit d012c73

Please sign in to comment.