Skip to content

Build Server Project (Part 2) #8

Build Server Project (Part 2)

Build Server Project (Part 2) #8

Workflow file for this run

name: UltimateAuth CI
on:
pull_request:
branches:
- dev
push:
branches:
- dev
jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['8.0.x', '9.0.x', '10.0.x']
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v4
- name: 🧰 Setup .NET SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: 📦 Restore dependencies
run: dotnet restore
- name: 🏗️ Build
run: dotnet build --configuration Release --no-restore
- name: 🧪 Run tests
run: dotnet test --configuration Release --no-build --collect:"XPlat Code Coverage"
- name: ⬆ Upload code coverage
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: '**/coverage.cobertura.xml'
if-no-files-found: ignore