Merge pull request #36 from wcxu21/main #77
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 Desktop | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Debug, Release] | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Checkout submodules | |
uses: snickerbockers/submodules-init@v4 | |
- name: Install .NET 6.x | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Restore the application | |
run: dotnet restore /p:Configuration=$env:Configuration /p:Platform="Any CPU" | |
env: | |
Configuration: ${{ matrix.configuration }} | |
- name: Build the application | |
run: dotnet build /p:Configuration=$env:Configuration /p:Platform="Any CPU" | |
env: | |
Configuration: ${{ matrix.configuration }} | |
- name: Test the application | |
run: dotnet test |