2022-04-30 13:13:16 +00:00
|
|
|
name: .NET
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-04-03 17:21:21 +00:00
|
|
|
branches:
|
2023-04-13 20:55:20 +00:00
|
|
|
- '*'
|
2023-08-23 15:14:56 +00:00
|
|
|
- '*/*'
|
2022-04-30 13:13:16 +00:00
|
|
|
pull_request:
|
2023-04-03 17:21:21 +00:00
|
|
|
branches:
|
2023-04-13 22:26:54 +00:00
|
|
|
- '*'
|
2023-08-23 15:14:56 +00:00
|
|
|
- '*/*'
|
2022-04-30 13:13:16 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: "Build & Test"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-11-13 17:58:52 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-04-30 13:13:16 +00:00
|
|
|
|
|
|
|
- name: Setup .NET
|
2024-11-13 18:12:44 +00:00
|
|
|
uses: actions/setup-dotnet@v4
|
2022-04-30 13:13:16 +00:00
|
|
|
with:
|
2023-04-01 21:21:08 +00:00
|
|
|
dotnet-version: |
|
2023-11-14 16:49:53 +00:00
|
|
|
8.0.x
|
2024-11-13 18:10:57 +00:00
|
|
|
9.0.x
|
2022-04-30 13:13:16 +00: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
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: dotnet build --no-restore --configuration Release
|
|
|
|
|
2023-11-14 16:49:53 +00:00
|
|
|
- name: Test .NET 8
|
2024-02-17 17:23:27 +00:00
|
|
|
run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0 --collect:"XPlat Code Coverage" --results-directory test-results/net8.0
|
2024-02-12 10:20:35 +00:00
|
|
|
|
2024-11-13 18:45:37 +00:00
|
|
|
- name: Test .NET 9
|
|
|
|
run: dotnet test --no-build --verbosity normal --configuration Release --framework net9.0 --collect:"XPlat Code Coverage" --results-directory test-results/net9.0
|
|
|
|
|
2024-02-12 10:20:35 +00:00
|
|
|
- name: Upload coverage reports to Codecov
|
2024-02-12 15:09:15 +00:00
|
|
|
uses: codecov/codecov-action@v4.0.0
|
2024-02-17 00:28:58 +00:00
|
|
|
with:
|
2024-02-17 17:23:27 +00:00
|
|
|
directory: test-results
|
2024-02-12 10:20:35 +00:00
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
slug: oliverbooth/X10D
|