Skip to content

Commit

Permalink
Set pack and install version
Browse files Browse the repository at this point in the history
  • Loading branch information
rouke-broersma committed Feb 16, 2024
1 parent 3a91550 commit f40a807
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down

0 comments on commit f40a807

Please sign in to comment.