升级项目,改用 dotnetCampus.LatestCSharpFeatures 提供的可空 #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET Build & Test | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [ Debug, Release ] | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
8.0.x | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Build the solution | |
run: msbuild /p:Configuration=$env:Configuration -restore | |
env: | |
Configuration: ${{ matrix.configuration }} | |
- name: Test | |
run: dotnet test --configuration $env:Configuration --no-build | |
env: | |
Configuration: ${{ matrix.configuration }} |