Compare commits
1 Commits
3e060c6e0e
...
15eb1c5c99
Author | SHA1 | Date | |
---|---|---|---|
15eb1c5c99 |
@ -5,9 +5,67 @@ on:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
EspressoReports:
|
||||
BuildAndTestAndCoverage:
|
||||
runs-on: ubuntu-latest
|
||||
uses: ./.gitea/workflows/common_coverage.yml
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Fetch tags
|
||||
run: git fetch --tags -p
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '17'
|
||||
cache: gradle
|
||||
- uses: gradle/actions/setup-gradle@v3
|
||||
- uses: android-actions/setup-android@v3
|
||||
- name: Configure gradle...
|
||||
run: mkdir -p ~/.gradle && echo "ignoreGitVersion=true" >> ~/.gradle/gradle.properties
|
||||
- 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
|
||||
- name: Set env url
|
||||
run: |
|
||||
export SELFOSS_URL=172.17.0.1:8888
|
||||
# https://github.com/ReactiveCircus/android-emulator-runner/issues/385
|
||||
- name: Kill crashpad_handler processes
|
||||
if: always()
|
||||
run: |
|
||||
pkill -SIGTERM crashpad_handler || true
|
||||
sleep 5
|
||||
pkill -SIGKILL crashpad_handler || true
|
||||
- name: Tests
|
||||
uses: reactivecircus/android-emulator-runner@v2
|
||||
with:
|
||||
api-level: 29
|
||||
script: |
|
||||
./gradlew androidApp:connectedAndroidTest
|
||||
killall -INT crashpad_handler || true
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: failure-espresso
|
||||
path: build/reports/androidTests/connected/screenshots
|
||||
retention-days: 2
|
||||
overwrite: true
|
||||
include-hidden-files: true
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: coverage-espresso
|
||||
path: build/reports/coverage/androidTest/githubConfig/debug/connected
|
||||
retention-days: 1
|
||||
overwrite: true
|
||||
include-hidden-files: true
|
||||
- name: Clean
|
||||
if: always()
|
||||
run: |
|
||||
docker compose -f .gitea/workflows/assets/docker-compose.yml stop
|
||||
|
||||
# Lint:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
|
@ -160,8 +160,8 @@ dependencies {
|
||||
implementation("androidx.multidex:multidex:2.0.1")
|
||||
|
||||
// About
|
||||
implementation("com.mikepenz:aboutlibraries-core:10.5.1")
|
||||
implementation("com.mikepenz:aboutlibraries:10.5.1")
|
||||
implementation("com.mikepenz:aboutlibraries-core:11.6.3")
|
||||
implementation("com.mikepenz:aboutlibraries:11.6.3")
|
||||
|
||||
// Material-ish things
|
||||
implementation("com.ashokvarma.android:bottom-navigation-bar:2.2.0")
|
||||
@ -280,4 +280,11 @@ tasks.whenTaskAdded {
|
||||
if (this.name == "connectedAndroidTest") {
|
||||
this.finalizedBy(fetchScreenshotsTask)
|
||||
}
|
||||
/* if (this.name == "mergeGithubConfigDebugResources" ||
|
||||
this.name == "packageGithubConfigDebugResources" ||
|
||||
this.name == "mapGithubConfigDebugSourceSetPaths" ||
|
||||
this.name == "extractDeepLinksGithubConfigDebug"
|
||||
) {
|
||||
this.dependsOn("prepareLibraryDefinitionsGithubConfigDebug")
|
||||
}*/
|
||||
}
|
||||
|
@ -93,11 +93,9 @@ class SettingsActivityTest : WithANRException() {
|
||||
onView(withText(R.string.translation)).check(matches(isDisplayed()))
|
||||
}
|
||||
|
||||
/*
|
||||
Fails after adding tasks.whenTaskAdded
|
||||
@Test
|
||||
fun testAbout() {
|
||||
onView(withText(R.string.action_about)).perform(click())
|
||||
onView(withText("ACRA")).check(matches(isDisplayed()))
|
||||
}*/
|
||||
/* @Test
|
||||
fun testAbout() {
|
||||
onView(withText(R.string.action_about)).perform(click())
|
||||
onView(withText("ACRA")).check(matches(isDisplayed()))
|
||||
}*/
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user