添加跳过式合并的支持 #123
Workflow file for this run
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: | | |
3.1.x | |
5.0.x | |
6.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 }} |