Update build-and-publish.yml #224
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: Unit testing | |
on: | |
pull_request: | |
branches: [ main ] | |
env: | |
DOTNET_VERSION: 8.0.x | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Install MAUI | |
run: dotnet workload install maui | |
- name: Install dependencies | |
run: dotnet restore ReactiveProperty.sln | |
- name: Test | |
run: dotnet test ReactiveProperty.sln --no-restore --verbosity normal |