1
0

Configure github actions (#1055)

* Create test.yml

* Change list of emulator api levels

* Downgrade emulator with api 30 to 29

* Exclude jdk.internal in jacoco config

* Use jdk 15

* Downgrade jdk to 11 due to jacoco incompatibility

gradle/gradle#15038

* Fix tests on jdk11

* Add codecov

* Add missing jacoco report generaction command

* Add flags to codecov uploads

* Add deploy config

* Replace travis badge with gh actions badge

* Add info about coroutines to readme, replace dagger with hilt

* Decrease instrumentation tests to 15 minutes

* Skip duplicate actions

* Remove comment

* Change os of instrumentation tests

* Downgrade android emulator runner to v2.13.0

* Add pre-build job

* Pass prebuild files between jobs

* Fix gh actions yaml config

* Tar build cache

* Fix upload-artifact filename

* Fix prebuild cache name

* Add more to cache, change cache key
This commit is contained in:
Mikołaj Pich
2020-12-27 18:30:50 +01:00
committed by GitHub
parent 9763208688
commit 7fe638130e
5 changed files with 153 additions and 7 deletions

View File

@ -7,6 +7,7 @@ jacoco {
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
}
task jacocoTestReport(type: JacocoReport) {

View File

@ -50,7 +50,7 @@ class TimeExtensionTest {
fun monthNameTest() {
Locale.setDefault(Locale.forLanguageTag("PL"))
assertEquals("Styczeń", JANUARY.getFormattedName())
Locale.setDefault(Locale.forLanguageTag("US"))
Locale.setDefault(Locale.forLanguageTag("EN"))
assertEquals("January", JANUARY.getFormattedName())
}
@ -58,7 +58,7 @@ class TimeExtensionTest {
fun weekDayNameTest() {
Locale.setDefault(Locale.forLanguageTag("PL"))
assertEquals("poniedziałek", of(2018, 10, 1).weekDayName)
Locale.setDefault(Locale.forLanguageTag("US"))
Locale.setDefault(Locale.forLanguageTag("EN"))
assertEquals("Monday", of(2018, 10, 1).weekDayName)
}