mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-17 11:25:34 -04:00
Merge pull request #3174 from kiwix/Issue#3142
Fixed nightly worflow should only compile and upload APK
This commit is contained in:
commit
1ec79ae76a
52
.github/workflows/nightly.yml
vendored
52
.github/workflows/nightly.yml
vendored
@ -7,54 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
|
||||
instrumentation_tests:
|
||||
strategy:
|
||||
matrix:
|
||||
api-level: [21, 22, 23, 24, 25, 27, 28, 30]
|
||||
target: [default]
|
||||
fail-fast: false
|
||||
runs-on: macos-11
|
||||
steps:
|
||||
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
|
||||
- name: Restore Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: run instrumentation tests
|
||||
uses: ReactiveCircus/android-emulator-runner@v2.23.0
|
||||
with:
|
||||
api-level: ${{ matrix.api-level }}
|
||||
target: ${{ matrix.target }}
|
||||
arch: x86_64
|
||||
profile: pixel_2
|
||||
sdcard-path-or-size: '1000M'
|
||||
disable-animations: false
|
||||
script: bash contrib/instrumentation_nightly.sh
|
||||
|
||||
- name: Upload screenshot result
|
||||
uses: actions/upload-artifact@v1
|
||||
if: failure()
|
||||
with:
|
||||
name: ${{ matrix.api-level }}
|
||||
path: screencap.png
|
||||
|
||||
unit_test_and_release:
|
||||
release:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
|
||||
@ -68,9 +21,6 @@ jobs:
|
||||
with:
|
||||
java-version: 11
|
||||
|
||||
- name: run unit tests
|
||||
run: ./gradlew testDebugUnitTest testCustomExampleDebugUnitTest
|
||||
|
||||
- name: build debug
|
||||
run: ./gradlew assembleDebug
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user