|
|
|
|
name: Record screenshots
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
# Enrich gradle.properties for CI/CD
|
|
|
|
|
env:
|
|
|
|
|
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
record:
|
|
|
|
|
name: Record screenshots on branch ${{ github.ref_name }}
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: ⏬ Checkout with LFS
|
|
|
|
|
uses: nschloe/action-cached-lfs-checkout@v1.2.1
|
|
|
|
|
with:
|
|
|
|
|
persist-credentials: false
|
|
|
|
|
- name: ☕️ Use JDK 17
|
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
|
with:
|
|
|
|
|
distribution: 'temurin' # See 'Supported distributions' for available options
|
|
|
|
|
java-version: '17'
|
|
|
|
|
# Add gradle cache, this should speed up the process
|
|
|
|
|
- name: Configure gradle
|
|
|
|
|
uses: gradle/gradle-build-action@v2.5.0
|
|
|
|
|
with:
|
|
|
|
|
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
|
|
|
|
|
- name: Record screenshots
|
|
|
|
|
run: "./.github/workflows/scripts/recordScreenshots.sh"
|
|
|
|
|
env:
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
|
|
|
|
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
|
|
|
|
|
|