Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,27 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
dotnet-quality: 'preview'
global-json-file: global.json
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release --nologo
- name: Test
run: dotnet test -c Release --nologo

pack-validate:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Pack (dry run)
run: |
VERSION="0.0.0-ci.${GITHUB_RUN_NUMBER}"
dotnet pack -c Release -o ./nupkg src/ProfileTool/ProfileTool.csproj -p:Version="$VERSION"
dotnet pack -c Release -o ./nupkg src/ProfilerCore/Asynkron.Profiler.Core.csproj -p:Version="$VERSION"
test -f "./nupkg/asynkron-profiler.$VERSION.nupkg"
test -f "./nupkg/Asynkron.Profiler.Core.$VERSION.nupkg"
3 changes: 1 addition & 2 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
dotnet-quality: 'preview'
global-json-file: global.json
- name: Pack
run: |
VERSION="${GITHUB_REF_NAME#v}"
Expand Down