Refactored ci to support minimum api level 24

* Since our minimum API level is now 24, we have updated our CI configuration to run on API level 24, which aligns with the minimum API level required for our project.
This commit is contained in:
MohitMali 2023-07-27 19:16:02 +05:30 committed by Kelson
parent 632bb4a528
commit 3e40c095a4

View File

@ -13,7 +13,7 @@ jobs:
name: Automated tests name: Automated tests
strategy: strategy:
matrix: matrix:
api-level: [ 21, 30, 33 ] api-level: [ 24, 30, 33 ]
fail-fast: false fail-fast: false
runs-on: macos-11 runs-on: macos-11
steps: steps:
@ -79,16 +79,16 @@ jobs:
path: screencap.png path: screencap.png
- name: create unit coverage - name: create unit coverage
if: ${{ matrix.api-level==21 }} if: ${{ matrix.api-level==24 }}
run: ./gradlew testDebugUnitTest testCustomexampleDebugUnitTest run: ./gradlew testDebugUnitTest testCustomexampleDebugUnitTest
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
if: ${{ matrix.api-level==21 }} if: ${{ matrix.api-level==24 }}
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
- name: Upload Coverage to GH-Actions - name: Upload Coverage to GH-Actions
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
if: ${{ matrix.api-level==21 }} if: ${{ matrix.api-level==24 }}
with: with:
name: Tests Coverage Report name: Tests Coverage Report
path: | path: |