File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,27 @@ jobs:
1414 - name : Setup .NET
1515 uses : actions/setup-dotnet@v4
1616 with :
17- dotnet-version : ' 10.0.x'
18- dotnet-quality : ' preview'
17+ global-json-file : global.json
1918 - name : Restore
2019 run : dotnet restore
2120 - name : Build
2221 run : dotnet build -c Release --nologo
2322 - name : Test
2423 run : dotnet test -c Release --nologo
24+
25+ pack-validate :
26+ runs-on : ubuntu-latest
27+ needs : build
28+ steps :
29+ - uses : actions/checkout@v4
30+ - name : Setup .NET
31+ uses : actions/setup-dotnet@v4
32+ with :
33+ global-json-file : global.json
34+ - name : Pack (dry run)
35+ run : |
36+ VERSION="0.0.0-ci.${GITHUB_RUN_NUMBER}"
37+ dotnet pack -c Release -o ./nupkg src/ProfileTool/ProfileTool.csproj -p:Version="$VERSION"
38+ dotnet pack -c Release -o ./nupkg src/ProfilerCore/Asynkron.Profiler.Core.csproj -p:Version="$VERSION"
39+ test -f "./nupkg/asynkron-profiler.$VERSION.nupkg"
40+ test -f "./nupkg/Asynkron.Profiler.Core.$VERSION.nupkg"
Original file line number Diff line number Diff line change 1313 - name : Setup .NET
1414 uses : actions/setup-dotnet@v4
1515 with :
16- dotnet-version : ' 10.0.x'
17- dotnet-quality : ' preview'
16+ global-json-file : global.json
1817 - name : Pack
1918 run : |
2019 VERSION="${GITHUB_REF_NAME#v}"
You can’t perform that action at this time.
0 commit comments