Target .NET 6

- Cleaned up code with Global and Implicit Usings
- Nullable is now enabled
- New .NET workflow
This commit is contained in:
Tony Bark 2023-01-02 16:26:29 -05:00
parent c042b47b4a
commit 4210e21c65
26 changed files with 776 additions and 794 deletions

View file

@ -1,23 +0,0 @@
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
dotnet: [ '3.1.200', '3.1.201' ]
build_mode: [ 'Release', 'Debug' ]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Build
run: dotnet build src -c ${{ matrix.build_mode }}
- name: Run tests
run: dotnet test src -c ${{ matrix.build_mode }}

26
.github/workflows/dotnet.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: .NET
on:
push:
branches: [main, master, "releases/**"]
pull_request:
branches: [main, master, "releases/**"]
jobs:
build:
timeout-minutes: 15
continue-on-error: true
runs-on: ${{ matrix.platforms }}
strategy:
matrix:
dotnet: ["6.0.x"]
platforms: ["ubuntu-latest", "windows-latest", "macos-latest"]
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore