Skip to content

Commit

Permalink
Merge pull request #17 from EuleMitKeule/feature/ci
Browse files Browse the repository at this point in the history
fix(ci): fix code coverage
  • Loading branch information
EuleMitKeule authored Nov 6, 2022
2 parents b64778b + 75cbd8d commit cda9252
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ jobs:
with:
projectPath: WorkingTitle/
githubToken: ${{ secrets.GITHUB_TOKEN }}
customParameters: -debugCodeOptimization -enableCodeCoverage -coverageOptions generateBadgeReport;assemblyFilters:+WorkingTitle.Unity,+WorkingTitle.Lib -coverageResultsPath coverage
customParameters: -debugCodeOptimization -enableCodeCoverage -coverageOptions generateBadgeReport;assemblyFilters:+WorkingTitle.Unity,+WorkingTitle.Lib

- name: Store results
uses: actions/upload-artifact@v2
if: always()
with:
name: Test results
path: artifacts
path: ${{ steps.run-tests.outputs.artifactsPath }}

- name: Store coverage
uses: actions/upload-artifact@v2
if: always()
with:
name: Code coverage
path: ./WorkingTitle/coverage
path: ${{ steps.run-tests.outputs.coveragePath }}
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ jobs:
with:
projectPath: WorkingTitle/
githubToken: ${{ secrets.GITHUB_TOKEN }}
customParameters: -debugCodeOptimization -enableCodeCoverage -coverageOptions generateBadgeReport;assemblyFilters:+WorkingTitle.Unity,+WorkingTitle.Lib -coverageResultsPath coverage
customParameters: -debugCodeOptimization -enableCodeCoverage -coverageOptions generateBadgeReport;assemblyFilters:+WorkingTitle.Unity,+WorkingTitle.Lib

- name: Store results
uses: actions/upload-artifact@v2
if: always()
with:
name: Test results
path: artifacts
path: ${{ steps.run-tests.outputs.artifactsPath }}

- name: Store coverage
uses: actions/upload-artifact@v2
if: always()
with:
name: Code coverage
path: ./WorkingTitle/coverage
path: ${{ steps.run-tests.outputs.coveragePath }}

- name: Commit coverage badges
run: |
Expand All @@ -70,7 +70,6 @@ jobs:
git push --delete origin badges
git branch badges
git checkout badges
git add ./WorkingTitle/coverage
git add ./artifacts
git add .
git commit -m "chore(meta): update coverage badges"
git push --set-upstream origin badges
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ WorkingTitle/[Bb]uild/
WorkingTitle/[Bb]uilds/
WorkingTitle/[Ll]ogs/
WorkingTitle/[Uu]ser[Ss]ettings/
WorkingTitle/CodeCoverage/

# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
Expand Down

0 comments on commit cda9252

Please sign in to comment.