mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 03:52:15 +02:00
Revert "Dependency updates 20240417 (#16193)"
This reverts commit 39b0bc6d4e
.
Tests no longer run
Fixes 16197
This commit is contained in:
parent
39b0bc6d4e
commit
a75ef34cf9
12
.github/workflows/lint.yml
vendored
12
.github/workflows/lint.yml
vendored
@ -62,11 +62,13 @@ jobs:
|
||||
command: ./gradlew :AnkiDroid:compilePlayDebugJavaWithJavac compileLint lint-rules:compileTestJava --daemon
|
||||
|
||||
- name: Run Lint Debug
|
||||
# "lint" is run under the 'Amazon' flavor, so slow in CI
|
||||
# "lintPlayRelease" doesn't test androidTest
|
||||
# "lintPlayDebug" doesn't test the API
|
||||
# "lintVitalFullRelease": if `main` resources are only used in `androidTest` (#15741)
|
||||
run: ./gradlew lintPlayDebug :api:lintDebug ktLintCheck lintVitalFullRelease lint-rules:test --daemon
|
||||
uses: gradle/gradle-build-action@v3
|
||||
with:
|
||||
# "lint" is run under the 'Amazon' flavor, so slow in CI
|
||||
# "lintPlayRelease" doesn't test androidTest
|
||||
# "lintPlayDebug" doesn't test the API
|
||||
# "lintVitalFullRelease": if `main` resources are only used in `androidTest` (#15741)
|
||||
arguments: lintPlayDebug :api:lintDebug ktLintCheck lintVitalFullRelease lint-rules:test --daemon
|
||||
|
||||
# Handled under the pre-commit hook: ./gradlew installGitHook
|
||||
|
||||
|
4
.github/workflows/tests_emulator.yml
vendored
4
.github/workflows/tests_emulator.yml
vendored
@ -23,8 +23,6 @@ jobs:
|
||||
name: Android Emulator Test
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 75
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@ -182,6 +180,6 @@ jobs:
|
||||
name: ${{ matrix.api-level }}-${{ matrix.arch }}-${{matrix.target}}-${{matrix.first-boot-delay}}-${{matrix.iteration}}-adb_video
|
||||
path: video.webm
|
||||
|
||||
- uses: codecov/codecov-action@v4
|
||||
- uses: codecov/codecov-action@v3
|
||||
with:
|
||||
verbose: true
|
||||
|
12
.github/workflows/tests_unit.yml
vendored
12
.github/workflows/tests_unit.yml
vendored
@ -22,8 +22,6 @@ jobs:
|
||||
unit:
|
||||
name: JUnit Tests (${{ matrix.name }})
|
||||
timeout-minutes: 40
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@ -89,7 +87,9 @@ jobs:
|
||||
command: ./gradlew robolectricSdkDownload --daemon
|
||||
|
||||
- name: Run Unit Tests
|
||||
run: ./gradlew jacocoUnitTestReport --daemon
|
||||
uses: gradle/gradle-build-action@v3
|
||||
with:
|
||||
arguments: jacocoUnitTestReport --daemon
|
||||
|
||||
- name: Store Logcat as Artifact
|
||||
if: failure()
|
||||
@ -109,8 +109,10 @@ jobs:
|
||||
|
||||
- name: Stop Gradle
|
||||
if: contains(matrix.os, 'windows')
|
||||
run: ./gradlew --stop
|
||||
uses: gradle/gradle-build-action@v3
|
||||
with:
|
||||
arguments: --stop
|
||||
|
||||
- uses: codecov/codecov-action@v4
|
||||
- uses: codecov/codecov-action@v3
|
||||
with:
|
||||
verbose: true
|
||||
|
@ -21,17 +21,6 @@ import org.junit.Test
|
||||
import kotlin.test.assertFailsWith
|
||||
|
||||
// explicitly missing @RunWith(AndroidJUnit4.class)
|
||||
//
|
||||
// NOTE - this earned us a friendly warning from robolectric upstream when investigated, I quote:
|
||||
// ----
|
||||
// a word of caution: invoking Robolectric APIs outside of the context of a Robolectric ClassLoader
|
||||
// is very unlikely to work :) Robolectric APIs often invoke underlying Android framework APIs,
|
||||
// and those will not be available outside of Robolectric.
|
||||
// ----
|
||||
//
|
||||
// ...so, this class may not work in the future as no test runner means no classloader, means
|
||||
// referencing `RobolectricTest` may try to reference missing android APIs.
|
||||
// See https://github.com/robolectric/robolectric/issues/8957#issuecomment-2032413796
|
||||
class RobolectricTestAnnotationTest : RobolectricTest() {
|
||||
@Test
|
||||
fun readableErrorIfNotAnnotated() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
[versions]
|
||||
acra = '5.11.3'
|
||||
amazonappstorepublisher = "0.1.0"
|
||||
androidGradlePlugin = "8.3.2"
|
||||
androidGradlePlugin = "8.2.2"
|
||||
androidxActivityKtx = "1.8.2"
|
||||
androidxAnnotation = "1.7.1"
|
||||
androidxAppCompat = "1.7.0-alpha03"
|
||||
@ -29,7 +29,7 @@ colorpicker = "1.2.0"
|
||||
commonsCollections4 = "4.4"
|
||||
commonsCompress = "1.26.1"
|
||||
commonsExec = "1.4.0"
|
||||
commonsIo = "2.16.1"
|
||||
commonsIo = "2.15.1"
|
||||
coroutines = '1.8.0'
|
||||
core = "3.3.0"
|
||||
desugar-jdk-libs-nio = "2.0.4"
|
||||
@ -47,21 +47,21 @@ junitJupiter = "5.10.2"
|
||||
junitJupiterParams = "5.10.2"
|
||||
junitVintageEngine = "5.10.2"
|
||||
kotlin = '1.9.23'
|
||||
kotlinReflect = "1.9.23"
|
||||
kotlinReflect = "1.9.22"
|
||||
kotlinTest = "1.9.23"
|
||||
kotlinxSerializationJson = "1.6.3"
|
||||
ktlint = "11.6.1"
|
||||
leakcanaryAndroid = "2.13"
|
||||
lint = '31.3.2'
|
||||
lint = '31.3.1'
|
||||
material = "1.11.0"
|
||||
materialTapTargetPrompt = "3.3.2"
|
||||
mockitoInline = "5.2.0"
|
||||
mockitoKotlin = "5.3.1"
|
||||
mockitoKotlin = "5.2.1"
|
||||
mockk = "1.13.10"
|
||||
nanohttpd = "2.3.1"
|
||||
okhttp = "4.12.0"
|
||||
protobufKotlinLite = "4.26.1"
|
||||
robolectric = "4.12.1"
|
||||
protobufKotlinLite = "3.25.3"
|
||||
robolectric = "4.11.1"
|
||||
searchpreference = "2.5.1"
|
||||
seismic = "1.0.3"
|
||||
sharedPreferencesMock = "1.2.4"
|
||||
|
@ -31,7 +31,7 @@
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-config-standard": "^17.1.0",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-n": "^17.2.1",
|
||||
"eslint-plugin-n": "^16.6.2",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"jest": "^29.7.0",
|
||||
"prettier": "^3.2.5",
|
||||
|
Loading…
Reference in New Issue
Block a user