Skip to content

Upgrade .net version and support custom dbSchema #54

Upgrade .net version and support custom dbSchema

Upgrade .net version and support custom dbSchema #54

Workflow file for this run

name: .NET Core
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Setup .NET 9
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.x'
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'
- name: Fix Windows VM bug
shell: bash
if: matrix.os == 'windows-latest'
run: |
dotnet nuget locals all --clear
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack
if: matrix.os == 'ubuntu-latest'
run: dotnet pack -c Release
- name: Publish artifact
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: nupkg
path: '**/*.nupkg'