Skip to content

Fix the CI

Fix the CI #112

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.slnx
- name: Build solution
run: |
dotnet build PosInformatique.Moq.Analyzers.slnx \
--configuration Release \
--no-restore
- name: Run tests (.NET 10.0)
run: |
dotnet test \
--solution PosInformatique.Moq.Analyzers.slnx \
--configuration Release \
--no-build \
--coverage \
--coverage-output-format cobertura \
--coverage-settings CodeCoverage.runsettings \
--report-trx \
--results-directory ./TestResults
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: (!cancelled())
with:
files: |
TestResults/**/*.trx