From 1a39f8174c123f8ecb5a323af3e137bc575c4c3f Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Thu, 4 Jan 2024 03:37:53 -0500 Subject: [PATCH] ci: Add version to perf test summary (#1137) Signed-off-by: Dave Skender <8432125+DaveSkender@users.noreply.github.com> --- ...build-codeql.yml => build-scan-codeql.yml} | 0 ...dicators.yml => built-test-indicators.yml} | 0 .github/workflows/deploy-package.yml | 4 +++- .../{deploy-docs.yml => docs-deploy.yml} | 0 .github/workflows/test-performance.yml | 21 ++++++++++++++++++- gitversion.yml | 2 ++ 6 files changed, 25 insertions(+), 2 deletions(-) rename .github/workflows/{build-codeql.yml => build-scan-codeql.yml} (100%) rename .github/workflows/{build-indicators.yml => built-test-indicators.yml} (100%) rename .github/workflows/{deploy-docs.yml => docs-deploy.yml} (100%) diff --git a/.github/workflows/build-codeql.yml b/.github/workflows/build-scan-codeql.yml similarity index 100% rename from .github/workflows/build-codeql.yml rename to .github/workflows/build-scan-codeql.yml diff --git a/.github/workflows/build-indicators.yml b/.github/workflows/built-test-indicators.yml similarity index 100% rename from .github/workflows/build-indicators.yml rename to .github/workflows/built-test-indicators.yml diff --git a/.github/workflows/deploy-package.yml b/.github/workflows/deploy-package.yml index 680ce9d2b..c4f78e5b2 100644 --- a/.github/workflows/deploy-package.yml +++ b/.github/workflows/deploy-package.yml @@ -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 }} diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/docs-deploy.yml similarity index 100% rename from .github/workflows/deploy-docs.yml rename to .github/workflows/docs-deploy.yml diff --git a/.github/workflows/test-performance.yml b/.github/workflows/test-performance.yml index d323c0a1a..da798f9cf 100644 --- a/.github/workflows/test-performance.yml +++ b/.github/workflows/test-performance.yml @@ -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 @@ -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 \ No newline at end of file + run: | + echo "### Package version $GITVERSION_FULLSEMVER" >> $GITHUB_STEP_SUMMARY + cat Tests.Performance.IndicatorPerformance-report-github.md >> $GITHUB_STEP_SUMMARY diff --git a/gitversion.yml b/gitversion.yml index 4cb24ba14..94e8fae58 100644 --- a/gitversion.yml +++ b/gitversion.yml @@ -9,3 +9,5 @@ no-bump-message: '\+semver:\s?(none|skip)' branches: pull-request: tag: preview. + feature: + tag: preview.