Skip to content

Commit 0b96727

Browse files
authored
Merge pull request #336 from synonymdev/ci/run-ci-on-all-pr
Run tests and Lint on all PRs
2 parents 6d971a7 + d18a0eb commit 0b96727

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [ "master" ]
66
pull_request:
7-
branches: [ "master" ]
87

98
workflow_dispatch:
109

.github/workflows/lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [ "master" ]
66
pull_request:
7-
branches: [ "master" ]
87

98
concurrency:
109
group: ${{ github.workflow }}-${{ github.ref }}

app/src/test/java/to/bitkit/repositories/ActivityRepoTest.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ import org.mockito.kotlin.verify
1919
import org.mockito.kotlin.whenever
2020
import org.mockito.kotlin.wheneverBlocking
2121
import to.bitkit.data.AppCacheData
22+
import to.bitkit.data.AppDb
2223
import to.bitkit.data.CacheStore
2324
import to.bitkit.data.dto.PendingBoostActivity
2425
import to.bitkit.services.CoreService
2526
import to.bitkit.test.BaseUnitTest
27+
import to.bitkit.utils.AddressChecker
2628
import kotlin.test.assertEquals
2729
import kotlin.test.assertFalse
2830
import kotlin.test.assertNull
@@ -33,6 +35,8 @@ class ActivityRepoTest : BaseUnitTest() {
3335
private val coreService: CoreService = mock()
3436
private val lightningRepo: LightningRepo = mock()
3537
private val cacheStore: CacheStore = mock()
38+
private val addressChecker: AddressChecker = mock()
39+
private val db: AppDb = mock()
3640

3741
private lateinit var sut: ActivityRepo
3842

@@ -71,6 +75,8 @@ class ActivityRepoTest : BaseUnitTest() {
7175
coreService = coreService,
7276
lightningRepo = lightningRepo,
7377
cacheStore = cacheStore,
78+
addressChecker = addressChecker,
79+
db = db
7480
)
7581
}
7682

0 commit comments

Comments
 (0)