Workload Identity #1102
This file contains hidden or 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: Local build and test | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- uses: dotnet/nbgv@master | |
with: | |
setAllVars: true | |
- run: echo "NuGetPackageVersion $NuGetPackageVersion" | |
- name: Restore | |
run: dotnet restore AgentSdk.proj | |
- name: Build | |
run: dotnet build --no-restore -c debug AgentSdk.proj | |
- name: Package | |
run: dotnet pack --no-build --no-restore -c debug src/Microsoft.Agents.SDK.sln | |
- name: Test | |
run: dotnet test --no-build --no-restore -c debug ./src/ |