Skip to content

Commit

Permalink
fix cover ci (#33)
Browse files Browse the repository at this point in the history
elringus authored Dec 26, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ba9d1c1 commit f6618fc
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/cover.yml
Original file line number Diff line number Diff line change
@@ -19,28 +19,27 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Cache Library
- name: Cache library
uses: actions/cache@v2
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
- name: Run tests and generate Coverage XML report
- name: Run tests and generate coverage report
uses: game-ci/unity-test-runner@v2
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
unityVersion: 2019.4.35f1
testMode: editmode
customParameters: -debugCodeOptimization -enableCodeCoverage -coverageOptions "useProjectSettings;generateAdditionalMetrics"
coverageOptions: useProjectSettings;generateAdditionalMetrics
customParameters: -debugCodeOptimization -enableCodeCoverage

- name: Upload XML report to Codecov
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
name: EditMode
flags: automated
root_dir: /github/workspace/CodeCoverage
files: ${{ steps.tests.outputs.coveragePath }}/**/*.xml
fail_ci_if_error: true

0 comments on commit f6618fc

Please sign in to comment.