Skip to content

Commit cc226c0

Browse files
committed
Debugging for CI
1 parent 5058807 commit cc226c0

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ permissions:
1919
jobs:
2020
build:
2121
runs-on: ubuntu-latest
22-
23-
# These env vars are inherited by all steps and child JVMs (Gradle, Maven Invoker forks, your TestHarness).
24-
env:
25-
# Make tinylog and any System.out/err visible in the Actions log
26-
JAVA_TOOL_OPTIONS: >-
27-
-Dtinylog.writer=console
28-
-Dtinylog.level=trace
29-
-Dtinylog.format={date} {level} [{thread}] {class}.{method}(): {message}
30-
-Dorg.slf4j.simpleLogger.defaultLogLevel=debug
31-
# Optional: keep Maven a bit more predictable
32-
MAVEN_OPTS: "-Xms256m -Xmx2g"
33-
3422
steps:
3523
- name: Checkout Repository
3624
uses: actions/checkout@v4
@@ -39,7 +27,7 @@ jobs:
3927
uses: actions/setup-java@v4
4028
with:
4129
java-version: '21'
42-
distribution: 'oracle' # fine; Temurin also works if you prefer
30+
distribution: 'oracle'
4331

4432
- name: Setup Gradle
4533
uses: gradle/gradle-build-action@v3
@@ -54,6 +42,14 @@ jobs:
5442

5543
# Run tests with verbose logging
5644
- name: Test
45+
env:
46+
# Sent to every JVM launched by this step (Gradle Daemon + any forks)
47+
JDK_JAVA_OPTIONS: >-
48+
-Dtinylog.writer=console
49+
-Dtinylog.level=trace
50+
-Dtinylog.format={date} {level} [{thread}] {class}.{method}(): {message}
51+
-Dorg.slf4j.simpleLogger.defaultLogLevel=debug
52+
MAVEN_OPTS: "-Xms256m -Xmx2g"
5753
run: ./gradlew test -PexcludeCategory="gin.category.LocalTest" --info --stacktrace | tee test.log
5854

5955
# Always upload logs and reports so we can inspect surefire/gradle outputs when something fails.

0 commit comments

Comments
 (0)