Skip to content

Commit

Permalink
chore: update actions (#53)
Browse files Browse the repository at this point in the history
* chore: update actions

* fix: lint
  • Loading branch information
adrielcafe authored Oct 11, 2020
1 parent 14b13a6 commit d443a4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Android CI

on: [push]
on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: msfjarvis/[email protected]
with:
args: "./gradlew check assembleDebug"
- name: Git checkout
uses: actions/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: 1.8
- name: Run check
run: "./gradlew check assembleDebug"
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RegionsViewModelTest {

@Test
fun `should report failure when fetching regions from remote`() = runBlockingTest {
service.stub {
service.stub {
onBlocking { fetchRegions() } doThrow UnexpectedResponse
}

Expand All @@ -44,7 +44,7 @@ class RegionsViewModelTest {
Failure(UnexpectedResponse),
Finish
)

val result = viewModel
.showRegions()
.toList()
Expand All @@ -65,7 +65,7 @@ class RegionsViewModelTest {
service.stub {
onBlocking { fetchRegions() } doReturn regions
}

val expected = listOf(
Start,
Success(presentation),
Expand Down

0 comments on commit d443a4f

Please sign in to comment.