Skip to content

Commit 2944879

Browse files
authored
Merge pull request #3607 from element-hq/misc/jme/fix-screenshot-recording-in-ci
Fix screenshot recording in CI
2 parents d371c49 + 02a173f commit 2944879

8 files changed

+5
-21
lines changed

.github/workflows/recordScreenshots.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77

88
# Enrich gradle.properties for CI/CD
99
env:
10-
GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx9g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx4g -Dsonar.gradle.skipCompile=true --no-configuration-cache
10+
GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx9g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx4g -Dsonar.gradle.skipCompile=true
11+
CI_GRADLE_ARG_PROPERTIES: --no-configuration-cache
1112

1213
jobs:
1314
record:
@@ -48,3 +49,4 @@ jobs:
4849
env:
4950
GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN || secrets.GITHUB_TOKEN }}
5051
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
52+
GRADLE_ARGS: ${{ env.CI_GRADLE_ARG_PROPERTIES }}

.github/workflows/scripts/recordScreenshots.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ if [[ -z ${REPO} ]]; then
5151
fi
5252

5353
echo "Deleting previous screenshots"
54-
./gradlew removeOldSnapshots --stacktrace --warn
54+
./gradlew removeOldSnapshots --stacktrace --warn $GRADLE_ARGS
5555

5656
echo "Record screenshots"
57-
./gradlew recordPaparazziDebug --stacktrace
57+
./gradlew recordPaparazziDebug --stacktrace $GRADLE_ARGS
5858

5959
echo "Committing changes"
6060
git config http.sslVerify false

tests/uitests/src/test/snapshots/images/features.messages.impl.typing_MessagesViewWithTyping_Day_0_en.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/uitests/src/test/snapshots/images/features.messages.impl.typing_MessagesViewWithTyping_Day_1_en.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/uitests/src/test/snapshots/images/features.messages.impl.typing_MessagesViewWithTyping_Day_2_en.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/uitests/src/test/snapshots/images/features.messages.impl.typing_MessagesViewWithTyping_Night_0_en.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/uitests/src/test/snapshots/images/features.messages.impl.typing_MessagesViewWithTyping_Night_1_en.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/uitests/src/test/snapshots/images/features.messages.impl.typing_MessagesViewWithTyping_Night_2_en.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)