name: Check master code on: push: branches: - testing jobs: checkout: runs-on: ubuntu-latest steps: - name: Check out repository code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Fetch tags run: git fetch --tags -p - name: Init compose uses: KengoTODA/actions-setup-docker-compose@v1 with: version: "2.23.3" - name: run selfoss run: | docker compose -f .gitea/workflows/assets/docker-compose.yml up -d sleep 1m response=$(curl 172.17.0.1:8888/api/about) echo $response - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '17' - name: Setup Android SDK uses: android-actions/setup-android@v3 - name: Configure gradle... run: mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=true" >> ~/.gradle/gradle.properties - name: ui tests uses: reactivecircus/android-emulator-runner@v2 with: api-level: 33 force-avd-creation: false arch: x86_64 cores: 4 disable-animations: true profile: Nexus 6 script: adb shell am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS && ./gradlew connectedAndroidTest -Dci=true - name: Artifacts uses: actions/upload-artifact@v3 if: failure() with: name: ui-tests path: androidApp/build/outputs/androidTest-results/connected/debug/flavors/githubConfig retention-days: 1 overwrite: true include-hidden-files: true - name: Clean if: always() run: | docker compose -f .gitea/workflows/assets/docker-compose.yml stop