mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 19:07: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
|
name: Check pull request
|
||||||
jobs:
|
jobs:
|
||||||
test-pr:
|
test-pr:
|
||||||
runs-on: macos-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
api-level: [23, 29]
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check if relevant files have changed
|
- name: Check if relevant files have changed
|
||||||
uses: actions/github-script@0.9.0
|
uses: actions/github-script@0.9.0
|
||||||
id: service-changed
|
id: service-changed
|
||||||
|
@ -34,15 +30,9 @@ jobs:
|
||||||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
||||||
|
|
||||||
- uses: burrunan/gradle-cache-action@v1
|
- uses: burrunan/gradle-cache-action@v1
|
||||||
name: Restore cache
|
name: Run unit tests
|
||||||
|
|
||||||
- name: Run instrumentation tests
|
|
||||||
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
|
||||||
uses: reactivecircus/android-emulator-runner@v2.11.0
|
|
||||||
with:
|
with:
|
||||||
api-level: ${{ matrix.api-level }}
|
arguments: testDebug
|
||||||
target: default
|
|
||||||
script: ./gradlew :app:connectedDebugAndroidTest
|
|
||||||
|
|
||||||
- name: (Fail-only) upload test report
|
- name: (Fail-only) upload test report
|
||||||
if: failure()
|
if: failure()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue