test github actions #2
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 AppHost | |
on: | |
push: | |
paths: | |
- 'src/MathZ.AppHost/**' | |
pull_request: | |
paths: | |
- 'src/MathZ.AppHost/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Cache NuGet packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.fsproj') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Install Aspire | |
run: dotnet workload install aspire | |
- name: Restore dependencies | |
run: dotnet restore src/MathZ.AppHost/MathZ.AppHost.csproj | |
- name: Build | |
run: dotnet build src/MathZ.AppHost/MathZ.AppHost.csproj --no-restore | |
- name: Test | |
run: dotnet test src/MathZ.AppHost/MathZ.AppHost.csproj --no-build --verbosity normal |