Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Added log generation/uploading #626

Merged
merged 3 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,14 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
run: |
gradle -b galasa-parent/build.gradle check publish \
set -o pipefail
gradle -b galasa-parent/build.gradle check publish --info \
-Dorg.gradle.jvmargs=-Xmx5120M \
-PsourceMaven=https://development.galasa.dev/${{ env.ARGO_APP_BRANCH }}/maven-repo/maven/ \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo \
-PjacocoEnabled=true \
-PisMainOrRelease=true
-PisMainOrRelease=true 2>&1 | tee build.log

- name: Build Framework source code
if: github.event_name == 'workflow_dispatch' # Use the input values provided by the workflow dispatch.
Expand All @@ -94,13 +95,21 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
run: |
gradle -b galasa-parent/build.gradle check publish \
set -o pipefail
gradle -b galasa-parent/build.gradle check publish --info \
-Dorg.gradle.jvmargs=-Xmx5120M \
-PsourceMaven=https://development.galasa.dev/${{ env.ARGO_APP_BRANCH }}/maven-repo/maven/ \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo \
-PjacocoEnabled=${{ inputs.jacocoEnabled }} \
-PisMainOrRelease=${{ inputs.isMainOrRelease }}
-PisMainOrRelease=${{ inputs.isMainOrRelease }} 2>&1 | tee build.log

- name: Upload Gradle Build Log
if: always()
uses: actions/upload-artifact@v4
with:
name: gradle-build-log
path: build.log

- name: Login to Github Container Registry
uses: docker/login-action@v3
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ jobs:

- name: Build Framework source code
run: |
gradle -b galasa-parent/build.gradle check publish \
gradle -b galasa-parent/build.gradle check publish --info \
-Dorg.gradle.jvmargs=-Xmx5120M \
-PsourceMaven=https://development.galasa.dev/gh/maven-repo/maven/ \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo \
--info
-PtargetMaven=${{ github.workspace }}/repo

- name: Build Framework image for testing
uses: docker/build-push-action@v5
Expand Down