2020-12-08 17:56:38 -05:00
|
|
|
name: .NET
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-04-09 09:27:48 -04:00
|
|
|
branches: [main, dev, "releases/**"]
|
2020-12-08 17:56:38 -05:00
|
|
|
pull_request:
|
2024-04-09 09:27:48 -04:00
|
|
|
branches: [main, dev, "releases/**"]
|
2020-12-08 17:56:38 -05:00
|
|
|
jobs:
|
|
|
|
build:
|
2022-10-10 03:47:01 -04:00
|
|
|
timeout-minutes: 15
|
|
|
|
continue-on-error: true
|
2022-10-10 02:56:37 -04:00
|
|
|
runs-on: ${{ matrix.platforms }}
|
2023-08-12 17:11:59 -04:00
|
|
|
env:
|
|
|
|
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
2020-12-08 17:56:38 -05:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-08-12 17:14:09 -04:00
|
|
|
dotnet: ["8.0.x"]
|
2022-10-10 04:29:10 -04:00
|
|
|
platforms: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
2020-12-08 17:56:38 -05:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup .NET
|
2023-08-12 17:11:59 -04:00
|
|
|
uses: actions/setup-dotnet@v3
|
2020-12-08 17:56:38 -05:00
|
|
|
with:
|
|
|
|
dotnet-version: ${{ matrix.dotnet }}
|
|
|
|
- name: Install dependencies
|
|
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
|
|
|
run: dotnet build --configuration Release --no-restore
|
2023-08-18 01:54:58 -04:00
|
|
|
test:
|
2023-11-28 09:53:08 -05:00
|
|
|
needs: build
|
2023-08-18 01:54:58 -04:00
|
|
|
timeout-minutes: 15
|
|
|
|
continue-on-error: true
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
env:
|
|
|
|
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
dotnet: ["8.0.x"]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup .NET
|
|
|
|
uses: actions/setup-dotnet@v3
|
|
|
|
with:
|
|
|
|
dotnet-version: ${{ matrix.dotnet }}
|
|
|
|
- name: Install dependencies
|
|
|
|
run: dotnet restore
|
|
|
|
- name: Test
|
|
|
|
run: dotnet test --no-restore
|