Skip to content

Merge pull request #36 from wcxu21/main #77

Merge pull request #36 from wcxu21/main

Merge pull request #36 from wcxu21/main #77

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