-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CustomHttpClientHandler.cs (#28)
* fixes #24 and #25 * fix pipeline * fix pipeline --------- Co-authored-by: Daniele Giallonardo <[email protected]>
- Loading branch information
1 parent
f470b0c
commit 7221673
Showing
8 changed files
with
43 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,10 +19,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET 7.0.x | ||
- name: Setup .NET 8.0.x | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 7.0.x | ||
dotnet-version: 8.0.x | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
working-directory: src | ||
|
@@ -33,25 +33,29 @@ jobs: | |
run: dotnet test --no-build --verbosity normal -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover | ||
working-directory: src | ||
- name: Copy the opencover.xml file | ||
if: github.event_name != 'pull_request' | ||
run: | | ||
find ./ -type f -name "coverage.opencover.xml" | while read fname; do | ||
dirname=`dirname "$fname"` | ||
cp "${dirname}/coverage.opencover.xml" "./coverage.opencover.xml" | ||
done | ||
- name: Create Test Coverage Badge Data | ||
if: github.event_name != 'pull_request' | ||
uses: simon-k/[email protected] | ||
id: create_coverage_badge | ||
with: | ||
label: Unit Test Coverage | ||
color: brightgreen | ||
path: ./coverage.opencover.xml | ||
- name: Create the Coverage Badge Data File | ||
if: github.event_name != 'pull_request' | ||
uses: 1arp/[email protected] | ||
with: | ||
path: ./.github | ||
file: coverage_badge.json | ||
content: ${{steps.create_coverage_badge.outputs.badge}} | ||
- name: Commit coverage_badge.json | ||
if: github.event_name != 'pull_request' | ||
run: | | ||
git config --global user.name 'GitHub Action' | ||
git config --global user.email '[email protected]' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters