Skip to content

Commit

Permalink
Upload test results to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvanyo committed Sep 22, 2024
1 parent 1e74246 commit 2309671
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ jobs:
if: matrix.sdk == '34' && !cancelled()
uses: actions/upload-artifact@v4
with:
name: unit-test-results
path: '**/build/test-results/test*UnitTest/**.xml'
name: test-results
path: '**/build/test-results/*Test/**.xml'

- name: Generate code coverage
if: matrix.sdk == '34'
Expand All @@ -189,7 +189,7 @@ jobs:
name: code-coverage
path: build/reports/jacoco/**/*.xml

codecov-upload:
codecov-coverage-upload:
needs: build
runs-on: ubuntu-latest

Expand All @@ -210,6 +210,34 @@ jobs:
fail_ci_if_error: true
directory: codecoverage

codecov-test-upload:
needs: build
if: always()
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download test results from GitHub
uses: actions/download-artifact@v4
with:
name: test-results
path: testresults

- id: test-result-files
run: |
echo -n "files=" >> $GITHUB_OUTPUT
find testresults -name "*.xml" | paste -s -d "," - >> $GITHUB_OUTPUT
- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ${{ steps.test-result-files.outputs.files }}


android-test-gmd-cfg:
runs-on: ubuntu-latest
outputs:
Expand Down

0 comments on commit 2309671

Please sign in to comment.