Bump version to 2.0.1 #30
Workflow file for this run
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
name: .NET 8 CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build | |
run: dotnet build --configuration Release | |
- name: Install reportgenerator | |
run: dotnet tool install -g dotnet-reportgenerator-globaltool | |
- name: Test | |
run: | | |
dotnet test --configuration Release \ | |
--no-build \ | |
--logger "console;verbosity=detailed" \ | |
--collect:"XPlat Code Coverage" \ | |
--settings coverlet.runsettings.xml \ | |
--results-directory MsTestResults | |
reportgenerator -reports:MsTestResults/*/coverage.cobertura.xml \ | |
-targetdir:Coverlet-html | |
- name: Archive artifacts (code coverage) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-coverage-report | |
path: Coverlet-html | |
- name: Self check | |
run: | | |
sudo apt-get update | |
sudo apt-get install xsltproc | |
xsltproc transform.xslt StyleChecker/StyleChecker/StyleChecker.csproj > 1.xml | |
xsltproc transform.xslt StyleChecker/StyleChecker.Test/StyleChecker.Test.csproj > 2.xml | |
cp 1.xml StyleChecker/StyleChecker/StyleChecker.csproj | |
cp 2.xml StyleChecker/StyleChecker.Test/StyleChecker.Test.csproj | |
dotnet add StyleChecker/StyleChecker/StyleChecker.csproj package StyleChecker --version ${{ env.STYLECHECKER_VERSION }} | |
dotnet add StyleChecker/StyleChecker.Test/StyleChecker.Test.csproj package StyleChecker --version ${{ env.STYLECHECKER_VERSION }} | |
dotnet build --configuration Release | |
env: | |
STYLECHECKER_VERSION: 2.0.1-alpha |