Merge pull request #3174 from kiwix/Issue#3142

Fixed nightly worflow should only compile and upload APK
This commit is contained in:
Kelson 2023-01-04 10:13:54 +01:00 committed by GitHub
commit 1ec79ae76a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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