Merge pull request #6912 from microsoft/dependabot/nuget/get-started/… #1746
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 .NET Get Started sample | |
on: | |
push: | |
branches: | |
- main | |
- regen/clients-** | |
paths: | |
- 'get-started/azure-auth/dotnet/**' | |
- 'get-started/azure-auth/cli/**' | |
- 'get-started/dotnet-dependency-injection/**' | |
- 'get-started/quickstart/dotnet/**' | |
- 'get-started/quickstart/cli/**' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'get-started/azure-auth/dotnet/**' | |
- 'get-started/azure-auth/cli/**' | |
- 'get-started/dotnet-dependency-injection/**' | |
- 'get-started/quickstart/dotnet/**' | |
- 'get-started/quickstart/cli/**' | |
jobs: | |
build-azure-dotnet: | |
runs-on: ubuntu-latest | |
needs: [] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
- name: Restore dependencies .NET Azure auth | |
run: dotnet restore | |
working-directory: get-started/azure-auth/dotnet/src/ | |
- name: Build .NET Azure auth | |
run: dotnet build --no-restore | |
working-directory: get-started/azure-auth/dotnet/src/ | |
build-azure-cli: | |
runs-on: ubuntu-latest | |
needs: [] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
- name: Restore dependencies CLI Azure auth | |
run: dotnet restore | |
working-directory: get-started/azure-auth/cli/src/ | |
- name: Build CLI Azure auth | |
run: dotnet build --no-restore | |
working-directory: get-started/azure-auth/cli/src/ | |
build-dotnet-dependency-injection: | |
defaults: | |
run: | |
working-directory: get-started/dotnet-dependency-injection/ | |
runs-on: ubuntu-latest | |
needs: [] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
- name: Restore dependencies dotnet-dependency-injection | |
run: dotnet restore ./dotnet-dependency-injection.sln | |
- name: Build dotnet-dependency-injection | |
run: dotnet build ./dotnet-dependency-injection.sln --no-restore | |
build-quickstart-dotnet: | |
runs-on: ubuntu-latest | |
needs: [] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
- name: Restore dependencies .NET quickstart | |
run: dotnet restore | |
working-directory: get-started/quickstart/dotnet/ | |
- name: Build .NET quickstart | |
run: dotnet build --no-restore | |
working-directory: get-started/quickstart/dotnet/ | |
- name: Test .NET quickstart | |
run: dotnet test | |
working-directory: get-started/quickstart/dotnet/ | |
build-quickstart-cli: | |
runs-on: ubuntu-latest | |
needs: [] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
- name: Restore dependencies CLI quickstart | |
run: dotnet restore | |
working-directory: get-started/quickstart/cli/src/ | |
- name: Build CLI quickstart | |
run: dotnet build --no-restore | |
working-directory: get-started/quickstart/cli/src/ |