GitHub actions attempt to upload my coverage reports to CodeCov, but I get an error. Below is my most recent GitHub Action code, and the error I'm receiving from CodeCov. Please let me know if there is any more information I can provide.
Error
Run codecov/codecov-action@v2
with:
name: CodeCov
flags: automated
token: ***
files: coverage-results/**/*.xml
env:
UNITY_LICENSE: ***
==> linux OS detected
https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (330066ecce62f2cdcfd2fe1845095475f51bbad9649dce81ac7b663dc884bbef codecov)
==> Running version latest
==> Running version v0.1.15
/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov -n CodeCov -Q github-action-2.1.0 -f coverage-results/**/*.xml -F automated -C 9d9656791bb5e390945821f1ecaae8a226b15aba
[2022-01-27T20:19:24.095Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.1.15
[2022-01-27T20:19:24.108Z] ['info'] => Project root located at: /home/runner/work/Time-Bubble/Time-Bubble
[2022-01-27T20:19:24.108Z] ['info'] -> Token found by environment variables
[2022-01-27T20:19:24.119Z] ['info'] Searching for coverage files...
[2022-01-27T20:19:24.133Z] ['error'] There was an error running the uploader: Error while cleaning paths. No paths matched existing files!
GitHub Action
name: Test with coverage
on:
pull_request:
branches: [master]
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
jobs:
testRunner:
name: Test in ${{ matrix.testMode }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testMode:
- EditMode
- PlayMode
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v2
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
- name: Git LFS Pull
run: |
git lfs pull
git add .
git reset --hard
- name: Restore Library cache
uses: actions/cache@v2
with:
path: Library
key: Library-test-project-${{ matrix.targetPlatform }}
restore-keys: |
Library-test-project-
Library-
- uses: game-ci/[email protected]
id: testRunner
with:
testMode: ${{ matrix.testMode }}
checkName: ${{ matrix.testMode }} test results
githubToken: ${{ secrets.GITHUB_TOKEN }}
customParameters: -debugCodeOptimization -enableCodeCoverage -coverageResultsPath ./coverage-results -coverageOptions generateAdditionalMetrics
- uses: actions/upload-artifact@v2
with:
name: Test results (${{ matrix.testMode }})
path: ${{ steps.testRunner.outputs.artifactsPath }}
codeCov:
needs: testRunner
name: Submit to CodeCov
runs-on: ubuntu-latest
steps:
- name: Upload XML report to Codecov
uses: codecov/codecov-action@v2
with:
name: CodeCov
flags: automated
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage-results/**/*.xml
- name: Check for failure
if: steps.CodeCov.outcome != 'success'
run: exit 1