Distributed Tracing for Entities (Isolated, with updated references to DT.Core packages) #1205
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: Validate Build | |
on: | |
push: | |
branches: | |
- main | |
- 'feature/**' | |
paths-ignore: [ '**.md' ] | |
pull_request: | |
branches: | |
- main | |
- 'feature/**' | |
- stevosyan/distributed-tracing-for-entities-isolated | |
paths-ignore: [ '**.md' ] | |
env: | |
solution: Microsoft.DurableTask.sln | |
config: release | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET 6.0 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Setup .NET from global.json | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- name: Restore dependencies | |
run: | | |
Get-ChildItem -Path src, test -Recurse -Filter *.csproj | ForEach-Object { dotnet restore $_.FullName } | |
- name: Build | |
run: | | |
Get-ChildItem -Path src, test -Recurse -Filter *.csproj | ForEach-Object { dotnet build --configuration $env:config --no-restore -p:FileVersionRevision=$env:GITHUB_RUN_NUMBER $_.FullName } | |
- name: Test | |
run: | | |
Get-ChildItem -Path src, test -Recurse -Filter *.csproj | ForEach-Object { dotnet test --configuration $env:config --no-build --verbosity normal $_.FullName } | |
- name: Pack | |
run: | | |
Get-ChildItem -Path src, test -Recurse -Filter *.csproj | ForEach-Object { dotnet pack --configuration $env:config --no-build $_.FullName } | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pkg | |
path: out/pkg |