Skip to content

Commit

Permalink
Update upload_test_coverage_report (#95)
Browse files Browse the repository at this point in the history
* Update `upload_test_coverage_report`

* Update `CHANGELOG.md`
  • Loading branch information
ns-vasilev authored Dec 27, 2024
1 parent ffd163b commit 0127343
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/actions/upload_test_coverage_report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,28 @@ runs:
using: "composite"

steps:
- name: Install dependencies
run: |
brew tap a7ex/homebrew-formulae
brew install xcresultparser
shell: bash

- name: Convert the test report
run: |
xcresultparser -o cobertura "test_output/${{ inputs.filename }}.xcresult" > cobertura.xml
shell: bash

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@v5.1.2
with:
token: ${{ inputs.token }}
xcode: true
flags: ${{ inputs.scheme_name }}
xcode_archive_path: test_output/${{ inputs.filename }}.xcresult
- uses: actions/upload-artifact@v4
fail_ci_if_error: true
verbose: true
files: ./cobertura.xml

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.filename }}
path: test_output
path: ${{ inputs.output_path }}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ All notable changes to this project will be documented in this file.
- Added in Pull Request [#82](https://github.com/space-code/flare/pull/82).

## Updated
- Update `upload_test_coverage_report`.
- Updated in Pull Request [#95](https://github.com/space-code/flare/pull/95).
- Update `CHANGELOG.md`.
- Updated in Pull Request [#74](https://github.com/space-code/flare/pull/74).
- Update `README.md`.
Expand Down

0 comments on commit 0127343

Please sign in to comment.