forked from upstream-mirrors/OpenTracks
use forgejo runners with unit tests
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user