From f40a80765b7b4c67a066ba8f76e1ba58a6aea529 Mon Sep 17 00:00:00 2001 From: Rouke Broersma Date: Fri, 16 Feb 2024 14:22:47 +0100 Subject: [PATCH] Set pack and install version --- .github/workflows/integration-test.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index 1607804303..762a3e5440 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -1,10 +1,12 @@ name: integration test macos m1 +run-name: e2e ${{ github.head_ref on m1 macos }} on: [pull_request] env: NUGET_FEED: https://f.feedz.io/stryker/stryker-net/nuget/index.json RestoreLockedMode: true + VERSION: "0.0.0-github-${{ github.run_number }}" jobs: integration-test: @@ -18,13 +20,13 @@ jobs: run: dotnet restore --packages .vstest working-directory: ${{ github.workspace }}/src/Stryker.Core/Stryker.Core/ToolHelpers/ - name: Pack integration test pacage - run: dotnet pack ${{ github.workspace }}/src/Stryker.CLI/Stryker.CLI/Stryker.CLI.csproj --version-suffix "github-${{ github.run_number }}" --output ${{ github.workspace }}/publish + run: dotnet pack ${{ github.workspace }}/src/Stryker.CLI/Stryker.CLI/Stryker.CLI.csproj -p:PackageVersion=$VERSION --output ${{ github.workspace }}/publish - name: Publish integration test package run: dotnet nuget push ${{ github.workspace }}/publish/*.nupkg -s $NUGET_FEED -k "$FEEDZ_NUGET_API_KEY" env: FEEDZ_NUGET_API_KEY: ${{ secrets.FEEDZ_NUGET_API_KEY }} - name: Install integration test package from feed - run: dotnet tool install dotnet-stryker --tool-path ${{ github.workspace }}/.nuget/tools --version --add-source $NUGET_FEED + run: dotnet tool install dotnet-stryker --tool-path ${{ github.workspace }}/.nuget/tools --version $VERSION --add-source $NUGET_FEED - name: Run integration test run: ${{ github.workspace }}/.nuget/tools/dotnet-stryker --dev-mode working-directory: ${{ github.workspace }}/integrationtest/TargetProjects/NetCoreTestProject.XUnit