Update README.md #4
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: Template Studio for WinUI (C#) | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Debug, Release] | |
platform: [x64, x86] | |
runs-on: windows-latest | |
# TODO: Update environment variables. | |
env: | |
Solution_Name: Fluent Auto Clicker.sln | |
Project_Name: Fluent Auto Clicker | |
Test_Project_Name: Fluent Auto Clicker.Tests.MSTest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
- name: Restore | |
run: dotnet restore $env:Solution_Name | |
- name: Build | |
run: msbuild $env:Solution_Name /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} | |
- name: Test | |
run: '& "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" ${env:Test_Project_Name}\bin\${{ matrix.platform }}\${{ matrix.configuration }}\**\${env:Test_Project_Name}.dll' |