Skip to content

Enhance BOM analysis with license information #24

Enhance BOM analysis with license information

Enhance BOM analysis with license information #24

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ main ]
paths:
- 'src/**'
- 'test/**'
pull_request:
paths:
- 'src/**'
- 'test/**'
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