Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add version to perf test summary #1137

Merged
merged 14 commits into from
Jan 4, 2024
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.