use forgejo runners with unit tests

This commit is contained in:
Peter Storch
2025-08-31 19:30:06 +02:00
parent e44f63feb7
commit ebed386d96
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