2022-04-30 14:13:16 +01:00
|
|
|
name: .NET
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-04-03 18:21:21 +01:00
|
|
|
branches:
|
2023-04-13 21:55:20 +01:00
|
|
|
- '*'
|
2023-08-23 16:14:56 +01:00
|
|
|
- '*/*'
|
2022-04-30 14:13:16 +01:00
|
|
|
pull_request:
|
2023-04-03 18:21:21 +01:00
|
|
|
branches:
|
2023-04-13 23:26:54 +01:00
|
|
|
- '*'
|
2023-08-23 16:14:56 +01:00
|
|
|
- '*/*'
|
2022-04-30 14:13:16 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: "Build & Test"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup .NET
|
2023-03-28 15:02:09 +01:00
|
|
|
uses: actions/setup-dotnet@v3
|
2022-04-30 14:13:16 +01:00
|
|
|
with:
|
2023-04-01 22:21:08 +01:00
|
|
|
dotnet-version: |
|
|
|
|
3.1.x
|
|
|
|
6.0.x
|
|
|
|
7.0.x
|
2022-04-30 14:13:16 +01:00
|
|
|
|
|
|
|
- name: Add NuGet source
|
|
|
|
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json"
|
|
|
|
|
|
|
|
- name: Restore dependencies
|
|
|
|
run: dotnet restore
|
|
|
|
|
2024-02-12 10:20:35 +00:00
|
|
|
- name: Install dotCover
|
|
|
|
shell: powershell
|
|
|
|
run: |
|
|
|
|
dotnet tool install --global JetBrains.dotCover.GlobalTool
|
|
|
|
|
2022-04-30 14:13:16 +01:00
|
|
|
- name: Build
|
|
|
|
run: dotnet build --no-restore --configuration Release
|
|
|
|
|
2023-04-01 22:21:08 +01:00
|
|
|
- name: Test .NET Core 3.1
|
|
|
|
run: dotnet test --no-build --verbosity normal --configuration Release --framework netcoreapp3.1
|
|
|
|
|
|
|
|
- name: Test .NET 6
|
|
|
|
run: dotnet test --no-build --verbosity normal --configuration Release --framework net6.0
|
|
|
|
|
|
|
|
- name: Test .NET 7
|
|
|
|
run: dotnet test --no-build --verbosity normal --configuration Release --framework net7.0
|
2024-02-12 10:20:35 +00:00
|
|
|
|
|
|
|
- name: Test .NET 8
|
|
|
|
run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0
|
|
|
|
|
|
|
|
- name: Collect coverage
|
|
|
|
run: dotnet dotcover test --dcReportType=HTML
|
|
|
|
|
|
|
|
- name: Upload coverage reports to Codecov
|
|
|
|
uses: codecov/codecov-action@v4.0.1
|
|
|
|
env:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
slug: oliverbooth/X10D
|