Use 'dotnet workload restore' to restore workloads in the PR CI builds #181
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: Build and test | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: macos-13 | |
steps: | |
- name: xCode | |
run: sudo xcode-select -s /Applications/Xcode_14.3.app/Contents/Developer/ | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
6.x.x | |
7.x.x | |
- name: install workloads | |
run: dotnet workload restore src/Avalonia.FuncUI.sln | |
- name: Restore dependencies | |
run: dotnet restore src/Avalonia.FuncUI.sln | |
- name: Build | |
run: dotnet build src/Avalonia.FuncUI.sln --no-restore | |
- name: Test | |
run: dotnet test src/Avalonia.FuncUI.sln --no-build --verbosity normal | |