-
Notifications
You must be signed in to change notification settings - Fork 188
34 lines (31 loc) · 1.6 KB
/
integration-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: ci
run-name: ci on ${{ github.ref_name }}
on: [pull_request]
env:
NUGET_FEED: https://f.feedz.io/stryker/stryker-net/nuget/index.json
RestoreLockedMode: true
jobs:
integration-test:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
cache: true
- name: Restore vstest
run: dotnet restore --packages ${{ github.workspace }}/src/Stryker.Core/Stryker.Core/ToolHelpers/.vstest
- name: Pack integration test pacage
run: dotnet pack ${{ github.workspace }}/src/Stryker.CLI/Stryker.CLI/Stryker.CLI.csproj --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 $(IntegrationTestVersion) --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
- name: Validate integration test result
run: dotnet test ${{ github.workspace }}/integrationtest/ValidationProject --filter Category=SingleTestProject
working-directory: ${{ github.workspace }}/integrationtest/TargetProjects/NetCoreTestProject.XUnit