[Feature] [WPF] Add WinUI - WPF #168
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: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet-version: [ '7.x' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET ${{ matrix.dotnet-version }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Cashing dependencies and restore from cashe | |
uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget | |
- name: Install dependencies | |
run: dotnet restore ./src | |
- name: Build | |
run: dotnet build ./src --configuration Release --no-restore | |
- name: Test | |
run: dotnet test ./src --no-restore --verbosity normal --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}" | |
- name: Upload .NET test results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dotnet-test-results-${{ matrix.dotnet-version }} | |
path: TestResults-${{ matrix.dotnet-version }} | |
if: ${{ always() }} |