Tweak test timeout #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [ "master", "ci-testing" ] | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: app/build | |
key: ${{ runner.os }}-build | |
- uses: DeterminateSystems/nix-installer-action@v16 | |
- name: Install Trilium Server | |
run: nix profile install nixpkgs/nixos-unstable-small#trilium-next-server | |
- name: Run Trilium Server | |
run: ./setup-test-server.sh | |
- uses: mfinelli/setup-imagemagick@v6 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'adopt' | |
cache: gradle | |
- name: Download Gradle wrapper | |
run: curl --silent --output gradle/wrapper/gradle-wrapper.jar https://raw.githubusercontent.com/gradle/gradle/master/gradle/wrapper/gradle-wrapper.jar | |
- name: Build tests | |
run: ./gradlew :app:packageDebugAndroidTest | |
- name: Run tests on emulator | |
run: ./gradlew :app:pixel9api35DebugAndroidTest | |
- name: Compare screenshots to reference | |
run: ./compare-test-images.sh | |
- name: Delete screenshots before caching | |
run: rm app/build/outputs/managed_device_android_test_additional_output/debug/pixel9api35/* 2>/dev/null || true |