Skip to content

Commit

Permalink
Attempt to get if statement back & add artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Daeda88 committed Jun 12, 2024
1 parent 65f33a2 commit c841281
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,28 @@ jobs:

- name: run Android unit tests
run: ./gradlew testDebugUnitTest koverHtmlReport koverXmlReport
- name: CHeck has token
run: |
echo ${{ secrets.CI_SPLENDO_PAT }}
- name: Test path
run: |
ls ${{ github.workspace }}/build/reports/kover
- name: add coverage report to PR
id: kover
uses: mi-kas/kover-report@v1
# this action fails if there is no report, unlike the above actions, so check if there are files
if: ${{ always() && hashFiles(join(github.workspace,'/build/reports/kover/report.xml')) != '' }}
with:
path: ${{ github.workspace }}/build/reports/kover/report.xml
token: ${{ secrets.CI_SPLENDO_PAT }}
title: Code coverage
update-comment: true
coverage-counter-type: LINE
- name: Upload Android test artifact
uses: actions/upload-artifact@v3
if: failure()
with:
name: "Android Test Report HTML"
path: "**/build/reports/tests/testDebugUnitTest"
- name: Upload Coverage report
uses: actions/upload-artifact@v3
if: ${{ always() && hashFiles(join(github.workspace,'/build/reports/kover/html/index.html')) != '' }}
with:
name: "Android Test Report HTML"
path: "**/build/reports/kover/html"
- name: run apiCheck
run: ./gradlew apiCheck
6 changes: 6 additions & 0 deletions .github/workflows/ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@ jobs:

- name: run iOS tests
run: ./gradlew :${{ matrix.module }}:ios${{ runner.arch == 'X86' && 'X86' || runner.arch == 'X64' && 'x86_64' || runner.arch == 'ARM' && 'SimulatorArm32' || 'SimulatorArm64' }}Test
- name: Upload iOS test artifact
uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{ matrix.module}} iOS Test Report HTML
path: ${{ join('**', matrix.module, '/build/reports/tests/ios', runner.arch == 'X86' && 'X86' || runner.arch == 'X64' && 'x86_64' || runner.arch == 'ARM' && 'SimulatorArm32' || 'SimulatorArm64' ,'Test') }}

0 comments on commit c841281

Please sign in to comment.