Skip to content

Commit

Permalink
Adjust jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Sep 15, 2024
1 parent 06cda4d commit 86cc290
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ concurrency:
cancel-in-progress: true

jobs:
build:
unit_tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
distribution: 'zulu'
Expand All @@ -32,15 +32,12 @@ jobs:
cache: "gradle"

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run quality checks
run: ./gradlew --build-cache check --stacktrace
- name: Check and build libraries
run: ./gradlew --build-cache check assembleRelease --stacktrace

- name: Assemble library
run: ./gradlew --build-cache assembleRelease

ui_test:
instrumented_tests:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
Expand All @@ -49,10 +46,10 @@ jobs:
arch: [x86_64]
target: [ google_apis ]
api-level: [34]
profile: [pixel_7]
profile: [pixel_6, tv_1080p]
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Enable KVM
run: |
Expand All @@ -68,14 +65,14 @@ jobs:
cache: "gradle"

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Compile instrumented tests
run: ./gradlew --build-cache assembleDebugAndroidTest

# Retrieve the cached emulator snapshot.
- name: AVD cache
uses: actions/cache@v3
uses: actions/cache@v4
id: avd-cache
with:
path: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- 'main'

jobs:
create_emulator:
create_avds:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
Expand All @@ -24,15 +24,15 @@ jobs:
arch: [x86_64]
target: [ google_apis ]
api-level: [34]
profile: [pixel_6]
profile: [pixel_6, tv_1080p]
steps:
- name: checkout
uses: actions/checkout@v4

- uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17.0.12+7'
java-version: '17'
check-latest: false
cache: "gradle"

Expand All @@ -47,7 +47,7 @@ jobs:

# Retrieve the cached emulator snapshot.
- name: AVD cache
uses: actions/cache@v3
uses: actions/cache@v4
id: avd-cache
with:
path: |
Expand Down

0 comments on commit 86cc290

Please sign in to comment.