|
name: Build .NET |
|
on: |
|
push: |
|
branches: [ main ] |
|
pull_request: |
|
branches: [ main ] |
|
jobs: |
|
build: |
|
runs-on: ubuntu-24.04 |
|
steps: |
|
- uses: actions/checkout@v7 |
|
- name: Setup .NET Core |
|
uses: actions/setup-dotnet@v6 |
|
with: |
|
dotnet-version: '10.0.x' |
|
- name: Install dependencies |
|
run: dotnet restore |
|
- name: Build |
|
run: dotnet build --configuration Release --no-restore |
|
- name: Test |
|
run: dotnet test --configuration Release --no-restore --no-build --verbosity normal --collect:"XPlat Code Coverage" |
|
- name: Report Codecov |
|
uses: codecov/codecov-action@v7 |