Bump xunit from 2.7.0 to 2.9.0 #98
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: CI - Code | |
on: | |
push: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- .github/workflows/ci-code.yml | |
- /** | |
env: | |
dotnetVersion: '7.0.x' | |
jobs: | |
verify_codebase: | |
name: Verify Codebase | |
runs-on: ubuntu-latest | |
permissions: | |
statuses: write | |
checks: write | |
contents: write | |
pull-requests: write | |
steps: | |
# Checkout code | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
# Install .NET | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.dotnetVersion }} | |
# Build Solution | |
- name: Build Solution | |
run: dotnet build Dukas.Net.sln --configuration release | |
# Run Automated Tests | |
- name: Run Unit Tests | |
run: dotnet test --logger "trx;LogFileName=test-results.trx" /p:Exclude="[*]Bi5.Net.Products*%2c[*]Bi5.Net.Models*" -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover --verbosity normal Bi5.Net.Tests/ || true | |
# Publish Unit Test Results | |
- name: Upload Test Results | |
uses: actions/upload-artifact@v3 | |
if: success() || failure() | |
with: | |
name: test-results | |
path: | | |
Bi5.Net.Tests/**/test-results.trx | |
Bi5.Net.Tests/**/coverage.opencover.xml | |
- name: Create Test Coverage Badge | |
uses: simon-k/[email protected] | |
id: create_coverage_badge | |
with: | |
label: Unit Test Coverage | |
color: brightgreen | |
path: Bi5.Net.Tests/TestResults/coverage.opencover.xml | |
gist-filename: code-coverage.json | |
gist-id: 240a53fad3b4d85a4f79ab772e84cb6a | |
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }} | |
- name: Publish NuGet on package version change | |
id: publish_nuget | |
uses: alirezanet/[email protected] | |
with: | |
PROJECT_FILE_PATH: Bi5.Net/Bi5.Net.csproj | |
PACKAGE_NAME: Bi5.Net | |
VERSION_FILE_PATH: Bi5.Net/Bi5.Net.csproj | |
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$ | |
TAG_COMMIT: true | |
TAG_FORMAT: v* | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} | |
NUGET_SOURCE: https://api.nuget.org | |
INCLUDE_SYMBOLS: false | |
NO_BUILD: false | |
code_quality: | |
runs-on: ubuntu-latest # or macos-latest, windows-latest | |
name: Code Quality (R#) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.dotnetVersion }} | |
- name: Restore NuGet Packages | |
run: dotnet restore Dukas.Net.sln | |
- name: R# Code Quality | |
uses: muno92/[email protected] | |
with: | |
solutionPath: Dukas.Net.sln | |
minimumSeverity: warning |