-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
ci: update workflows
1 parent
aa3e4e7
commit 3bd1a5a
Showing
3 changed files
with
31 additions
and
16 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 |
---|---|---|
|
@@ -22,19 +22,27 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET SDK ${{ matrix.dotnet-version }} | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: ${{ matrix.dotnet-version }} | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
|
||
- name: Clean the Readme | ||
run: | | ||
sed -i.bak '/<p align="center">/,/<\/p>/d' README.md | ||
sed -i.bak '/\<div/d' README.md | ||
sed -i.bak '/\<\\/div/d' README.md | ||
rm README.md.bak | ||
cat README.md | ||
- name: Build | ||
run: dotnet build -c Release --no-restore | ||
|
||
- name: Test | ||
run: dotnet test --no-restore --verbosity normal | ||
|
||
|
@@ -44,24 +52,24 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Test | ||
run: dotnet test --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura | ||
|
||
- name: Generate code coverage report | ||
uses: danielpalme/[email protected] | ||
with: | ||
reports: '**/coverage.cobertura.xml' | ||
targetdir: 'CodeCoverage' | ||
reporttypes: 'Cobertura' | ||
|
||
- name: Publish code coverage report | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: '**/coverage.cobertura.xml' | ||
files: '**/coverage.cobertura.xml' |
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