-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
289b950
commit d012c73
Showing
1 changed file
with
8 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 |