Merge pull request 'use forgejo runner with simple unit tests' (#2159) from connected_check into main

Reviewed-on: https://codeberg.org/OpenTracksApp/OpenTracks/pulls/2159
This commit is contained in:
pstorch
2025-10-13 11:27:17 +02:00
3 changed files with 32 additions and 20 deletions
+32
View File
@@ -0,0 +1,32 @@
name: Android Test
on: [push]
jobs:
lint:
name: Android Lint
runs-on: docker
container:
image: 'ubuntu:android-24.04'
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Lint
shell: bash
run: ./gradlew lint
android-check:
runs-on: docker
container:
image: 'ubuntu:android-24.04'
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Test
shell: bash
run: ./gradlew testNightlyDebugUnitTest --stacktrace
-10
View File
@@ -1,10 +0,0 @@
steps:
build:
when:
event: [ push ]
image: androidsdk/android-31
commands:
- apt-get update
- apt-get install -y openjdk-17-jdk-headless
- update-java-alternatives -a
- ./gradlew lint
-10
View File
@@ -1,10 +0,0 @@
steps:
build:
when:
event: [ push ]
image: androidsdk/android-31
commands:
- apt-get update
- apt-get install -y openjdk-17-jdk-headless
- update-java-alternatives -a
- ./gradlew testNightlyDebugUnitTest --stacktrace