Skip to content

refactor: Remove RepositoryScanner class to streamline project scanning #3

refactor: Remove RepositoryScanner class to streamline project scanning

refactor: Remove RepositoryScanner class to streamline project scanning #3

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
dotnet-version: ['10.0.x']
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for Nerdbank.GitVersioning
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore src/CodeMedic.sln
- name: Build
run: dotnet build src/CodeMedic.sln --configuration Release --no-restore
- name: Run tests
run: dotnet test src/CodeMedic.sln --configuration Release --no-build --verbosity normal --logger trx --results-directory "TestResults-${{ matrix.os }}"
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-${{ matrix.os }}
path: TestResults-${{ matrix.os }}/*.trx