Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build and Test

on:
pull_request:
branches:
- main
- refs/tags/*

jobs:
build:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Git Versioning requires a non-shallow clone

- name: Install .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.x'

- name: Install .NET 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'

- name: Install .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'

- name: Restore
run: dotnet restore -bl:logs/restore.binlog

- name: Build
run: dotnet build --configuration Release --no-restore -bl:logs/build.binlog

- name: Test
run: dotnet test --configuration Release --no-build --logger trx --results-directory TestResults --collect:"Code Coverage;Format=Cobertura"
# TODO: Fix tests on Linux
if: matrix.os != 'ubuntu-latest'

- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}
path: ./TestResults
if: ${{ always() }} # Always run this step even on failure

- name: Upload logs
uses: actions/upload-artifact@v4
with:
name: logs-${{ matrix.os }}
path: ./logs
if: ${{ always() }} # Always run this step even on failure

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts-${{ matrix.os }}
path: ./artifacts
if: ${{ always() }} # Always run this step even on failure
219 changes: 0 additions & 219 deletions azure-pipelines-ci.yml

This file was deleted.