Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added build log generation/uploading #200

Merged
merged 4 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
28 changes: 22 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '11'
java-version: '17'
distribution: 'semeru'
cache: maven

Expand All @@ -31,25 +31,41 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 6.9.2
gradle-version: 8.9

- name: Build Integration Tests Gradle source code
run: |
gradle -b galasa-inttests-parent/build.gradle publish publishToMavenLocal \
set -o pipefail
gradle -b galasa-inttests-parent/build.gradle publish publishToMavenLocal --info \
-PsourceMaven=https://development.galasa.dev/gh/maven-repo/obr \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{github.workspace}}/repo
-PtargetMaven=${{github.workspace}}/repo 2>&1 | tee gradle-build.log

- name: Upload Maven Build Log
if: always()
uses: actions/upload-artifact@v4
with:
name: gradle-build-log
path: gradle-build.log
jaydee029 marked this conversation as resolved.
Show resolved Hide resolved

- name: Building Integration Tests Maven source code
run: |
mvn -f galasa-inttests-parent/dev.galasa.inttests.obr/pom.xml deploy \
set -o pipefail
mvn -f galasa-inttests-parent/dev.galasa.inttests.obr/pom.xml -X deploy \
-Dgalasa.source.repo=https://development.galasa.dev/gh/maven-repo/obr \
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \
-Dgalasa.release.repo=file:${{ github.workspace }}/repo \
-Dgalasa.skip.deploytestcatalog=true \
-Dgalasa.skip.bundletestcatalog=false \
--batch-mode --errors --fail-at-end \
--settings ${{github.workspace}}/settings.xml
--settings ${{github.workspace}}/settings.xml 2>&1 | maven-build.log

- name: Upload Maven Build Log
if: always()
uses: actions/upload-artifact@v4
with:
name: maven-build-log
path: maven-build.log
jaydee029 marked this conversation as resolved.
Show resolved Hide resolved

- name: Login to Github Container Registry
uses: docker/login-action@v3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '11'
java-version: '17'
distribution: 'semeru'
cache: maven

Expand All @@ -27,18 +27,18 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 6.9.2
gradle-version: 8.9

- name: Build Integration Tests Gradle source code
run: |
gradle -b galasa-inttests-parent/build.gradle publish publishToMavenLocal \
gradle -b galasa-inttests-parent/build.gradle publish publishToMavenLocal --info \
-PsourceMaven=https://development.galasa.dev/gh/maven-repo/obr \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{github.workspace}}/repo

- name: Building Integration Tests Maven source code
run: |
mvn -f galasa-inttests-parent/dev.galasa.inttests.obr/pom.xml deploy -Dgpg.skip=true \
mvn -f galasa-inttests-parent/dev.galasa.inttests.obr/pom.xml -X deploy -Dgpg.skip=true \
-Dgalasa.source.repo=https://development.galasa.dev/gh/maven-repo/obr \
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \
-Dgalasa.release.repo=file:${{ github.workspace }}/repo \
Expand Down