Skip to content

Commit

Permalink
ci: Add version to perf test summary (#1137)
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Skender <[email protected]>
  • Loading branch information
DaveSkender authored Jan 4, 2024
1 parent 4407e16 commit 1a39f81
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ jobs:
uses: ncipollo/release-action@v1
if: inputs.environment == 'nuget'
with:
body: "We’ve released a new Stock Indicators for .NET NuGet package. See [Skender.Stock.Indicators @ NuGet.org](${{ vars.NUGET_DOWNLOAD_PREFIX }}${{ needs.build.outputs.version }}) for more information."
body: |
We’ve released a new Stock Indicators for .NET NuGet package.
See [Skender.Stock.Indicators @ NuGet.org](${{ vars.NUGET_DOWNLOAD_PREFIX }}${{ needs.build.outputs.version }}) for more information.
generateReleaseNotes: true
draft: true
makeLatest: ${{ !inputs.preview }}
Expand Down
File renamed without changes.
21 changes: 20 additions & 1 deletion .github/workflows/test-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,25 @@ jobs:
runs-on: ubuntu-latest

steps:

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: "5.x"
preferLatestVersion: true

- name: Determine version
id: gitversion
uses: gittools/actions/gitversion/execute@v0
with:
updateAssemblyInfo: true
useConfigFile: true
configFilePath: gitversion.yml

- name: Install .NET SDK
uses: actions/setup-dotnet@v3
Expand All @@ -33,4 +50,6 @@ jobs:

- name: Publish summary
working-directory: tests/performance/BenchmarkDotNet.Artifacts/results
run: cat Tests.Performance.IndicatorPerformance-report-github.md >$GITHUB_STEP_SUMMARY
run: |
echo "### Package version $GITVERSION_FULLSEMVER" >> $GITHUB_STEP_SUMMARY
cat Tests.Performance.IndicatorPerformance-report-github.md >> $GITHUB_STEP_SUMMARY
2 changes: 2 additions & 0 deletions gitversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ no-bump-message: '\+semver:\s?(none|skip)'
branches:
pull-request:
tag: preview.
feature:
tag: preview.

0 comments on commit 1a39f81

Please sign in to comment.