Skip to content

Commit c2cb325

Browse files
committed
检查一下 runner 规格
1 parent 801e77a commit c2cb325

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/unit-test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@ jobs:
2121
uses: actions/setup-java@v1
2222
with:
2323
java-version: 1.8
24+
- name: Check system resources
25+
run: |
26+
echo "CPU cores:"
27+
nproc
28+
echo "Memory (MB):"
29+
free -m
30+
echo "Disk space:"
31+
df -h
2432
- name: Unit Test
2533
env:
26-
MAVEN_OPTS: "-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heap-dump.hprof -Xmx6g -Xms6g -XX:MaxMetaspaceSize=1g -XX:MetaspaceSize=512m"
34+
MAVEN_OPTS: "-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heap-dump.hprof -Xmx12g -Xms12g -XX:MaxMetaspaceSize=1g -XX:MetaspaceSize=512m"
2735
run: mvn compile -B
28-
&& mvn clean test -X -DisSkipIntegrationTest=true "-Dtest.logging.level=ERROR" --fail-at-end --batch-mode
36+
&& mvn clean test -DisSkipIntegrationTest=true "-Dtest.logging.level=ERROR" --fail-at-end --batch-mode
2937
- name: Upload heap dump
3038
if: always()
3139
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)