mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 20:17:02 +05:30
github: only run unit tests in CI
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
9a00122525
commit
8808e0dfb8
1 changed files with 3 additions and 13 deletions
16
.github/workflows/pull_request.yml
vendored
16
.github/workflows/pull_request.yml
vendored
|
@ -3,12 +3,8 @@ on: [pull_request]
|
|||
name: Check pull request
|
||||
jobs:
|
||||
test-pr:
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
matrix:
|
||||
api-level: [23, 29]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Check if relevant files have changed
|
||||
uses: actions/github-script@0.9.0
|
||||
id: service-changed
|
||||
|
@ -34,15 +30,9 @@ jobs:
|
|||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
||||
|
||||
- uses: burrunan/gradle-cache-action@v1
|
||||
name: Restore cache
|
||||
|
||||
- name: Run instrumentation tests
|
||||
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
||||
uses: reactivecircus/android-emulator-runner@v2.11.0
|
||||
name: Run unit tests
|
||||
with:
|
||||
api-level: ${{ matrix.api-level }}
|
||||
target: default
|
||||
script: ./gradlew :app:connectedDebugAndroidTest
|
||||
arguments: testDebug
|
||||
|
||||
- name: (Fail-only) upload test report
|
||||
if: failure()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue