Add analyzer for Register method #11
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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [ opened, synchronize, reopened ] # Same as default | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
DOTNET_VERSION: '7.0.x' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Test | |
run: dotnet test --logger "trx;LogFileName=result.xml" --verbosity normal --results-directory "TestResults-${{ env.DOTNET_VERSION }}" | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dotnet-test-results-${{ env.DOTNET_VERSION }} | |
path: TestResults-${{ env.DOTNET_VERSION }} | |
if: ${{ always() }} | |
- name: Report test results | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: Test Report | |
path: "**/TestResults-${{ env.DOTNET_VERSION }}/*.xml" | |
reporter: dotnet-trx |