Skip to content

Translations update from Hosted Weblate #243

Translations update from Hosted Weblate

Translations update from Hosted Weblate #243

Workflow file for this run

name: Test
on:
push:
branches:
- '*'
pull_request:
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: app/build
key: ${{ runner.os }}-build-${{ hashFiles('app/build.gradle') }}
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
with:
extra-conf: "extra-substituters = https://cache.garnix.io\nextra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
- name: Install Trilium Server and ImageMagick
run: nix profile install github:TriliumNext/Trilium/v0.102.1#server nixpkgs/master#imagemagick
- name: Run Trilium Server
run: ./app/test/setup-test-server.sh
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.0.0
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Configure test networking
run: "sed -i 's/LOCAL_TEST = true/LOCAL_TEST = false/g' app/src/androidTest/kotlin/eu/fliegendewurst/triliumdroid/InitialSyncTest.kt"
- name: Configure Gradle wrapper
run: gradle wrapper --no-daemon
- name: Run unit tests
run: ./gradlew :app:testDebugUnitTest
- name: Run emulator tests
run: ./gradlew :app:pixel9api35DebugAndroidTest
- name: Upload screenshots
if: always()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: screenshots
path: app/build/outputs/managed_device_android_test_additional_output/debug/pixel9api35/*
- name: Compare screenshots to reference
run: ./app/test/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