Skip to content

Commit

Permalink
Merge pull request #1717 from cherylking/fixLinuxBuildIssues
Browse files Browse the repository at this point in the history
Reduce log size and free up disk space on Linux
  • Loading branch information
cherylking committed Aug 16, 2023
2 parents af5a4ea + 749f7f9 commit 0e99501
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Free disk space ubuntu
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
large-packages: false
- name: Checkout ci.common
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -67,7 +72,7 @@ jobs:
./mvnw -V clean install -f ci.common --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
# Run tests
- name: Run tests
run: ./mvnw -V verify --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -Ponline-its -D"invoker.streamLogs"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
run: ./mvnw -V verify --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -Ponline-its -D"invoker.streamLogsOnFailures"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"

# WINDOWS BUILD
build-windows:
Expand Down Expand Up @@ -122,4 +127,4 @@ jobs:
# Run tests
- name: Run tests
working-directory: C:/ci.maven
run: .\mvnw.cmd -V verify -Ponline-its --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -D"invoker.streamLogs"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
run: .\mvnw.cmd -V verify -Ponline-its --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -D"invoker.streamLogsOnFailures"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
5 changes: 2 additions & 3 deletions liberty-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<profiles>
<profile>offline-its</profile>
</profiles>
<streamLogs>true</streamLogs>
<streamLogsOnFailures>true</streamLogsOnFailures>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -177,11 +177,10 @@
<runtimeKernelId>${runtimeKernelId}</runtimeKernelId>
<runtimeVersion>${runtimeVersion}</runtimeVersion>
</properties>
<streamLogs>true</streamLogs>
<profiles>
<profile>online-its</profile>
</profiles>
<streamLogs>true</streamLogs>
<streamLogsOnFailures>true</streamLogsOnFailures>
<mavenOpts>-Dfile.encoding=UTF-8</mavenOpts>
</configuration>
<executions>
Expand Down

0 comments on commit 0e99501

Please sign in to comment.