Merge pull request #184 from mivano/dependabot/nuget/src/Azure.Identi… #234
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: .NET | |
env: | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- "src/**" | |
- ".github/workflows/dotnet.yml" | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- "src/**" | |
- ".github/workflows/dotnet.yml" | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, 'skip-ci')" | |
defaults: | |
run: | |
working-directory: ./src | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal |