forked from upstream-mirrors/quik
refactor(ci): Move test on pr to own job
That way testing and building can run in parallel and we can save a few minutes.
This commit is contained in:
@@ -27,12 +27,6 @@ jobs:
|
|||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew assembleDebug
|
run: ./gradlew assembleDebug
|
||||||
|
|
||||||
- name: Run Android Lint
|
|
||||||
run: ./gradlew lint
|
|
||||||
|
|
||||||
- name: Run Tests
|
|
||||||
run: ./gradlew test
|
|
||||||
|
|
||||||
- name: List APK Output Directory
|
- name: List APK Output Directory
|
||||||
run: ls -R presentation/build/outputs/apk/debug
|
run: ls -R presentation/build/outputs/apk/debug
|
||||||
|
|
||||||
@@ -57,3 +51,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: apk-debug
|
name: apk-debug
|
||||||
path: presentation/build/outputs/apk/debug/QUIK-debug.apk
|
path: presentation/build/outputs/apk/debug/QUIK-debug.apk
|
||||||
|
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
|
- name: Validate Gradle Wrapper
|
||||||
|
uses: gradle/actions/wrapper-validation@v6
|
||||||
|
|
||||||
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v6
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: '17'
|
||||||
|
cache: gradle
|
||||||
|
|
||||||
|
- name: Run Android Lint
|
||||||
|
run: ./gradlew lint
|
||||||
|
|
||||||
|
- name: Run Tests
|
||||||
|
run: ./gradlew test
|
||||||
|
|||||||
Reference in New Issue
Block a user