Skip to content

Sync 7.3.0 pk

Sync 7.3.0 pk #7

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: windows-dotnet-build-and-test
on:
# push:
# branches: [ "main" ]
pull_request:
paths:
- '**/*.cs'
- '**/*.cshtml'
- '**/*.csproj'
- '**/*.razor'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-build-nuget-${{ env.CACHE_NAME }}-
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal