Skip to content

Commit

Permalink
✨ feature: Codecov - Compare Actor for Upload (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerCarrol authored Dec 3, 2024
1 parent d5e32be commit 6c7dd5b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ct-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
# Skip: README, CHANGELOG, LICENSE, THIRD-PARTY-LICENSES, .gitignore, GitHub Workflows & Actions, etc.
- name: Check for Changes to Determine if Tests can be Skipped
id: getChanges
uses: tj-actions/changed-files@v45.0.3
uses: tj-actions/changed-files@v45.0.4
with:
files_ignore: |
README.md
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Setup NuGet
uses: NuGet/setup-nuget@v2.0.0
uses: NuGet/setup-nuget@v2.0.1

- name: Restore NuGet
run: nuget restore
Expand Down Expand Up @@ -144,9 +144,10 @@ jobs:
####################################################################################################
### Code Coverage ###
####################################################################################################
- name: Upload Results to Codecov (Optional)
if: ${{ !fromJSON(steps.getCanSkip.outputs.result) }}
uses: codecov/codecov-action@v4
# Upload results to codecov if the actor is the repository owner
- name: Upload Results to Codecov (Optional) [${{ github.actor }}]
if: ${{ !fromJSON(steps.getCanSkip.outputs.result) && github.actor == 'TylerCarrol' }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: "**/TestResults/**/coverage.cobertura.xml"
Expand Down

0 comments on commit 6c7dd5b

Please sign in to comment.