Skip to content

Refactoring of the last fix and improve to detect wrong usage of "par… #107

Refactoring of the last fix and improve to detect wrong usage of "par…

Refactoring of the last fix and improve to detect wrong usage of "par… #107

name: Continuous Integration
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "releases/**" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Restore dependencies
run: dotnet restore PosInformatique.Moq.Analyzers.sln
- name: Build solution
run: |
dotnet build PosInformatique.Moq.Analyzers.sln \
--configuration Release \
--no-restore
- name: Run tests
run: |
dotnet test PosInformatique.Moq.Analyzers.sln \
--configuration Release \
--no-build \
--logger "trx;LogFileName=test_results.trx" \
--results-directory ./TestResults
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: (!cancelled())
with:
files: |
TestResults/**/*.trx