diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f787db15..efc54c6d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,8 +16,11 @@ jobs: uses: actions/setup-dotnet@v2 with: dotnet-version: 6.0.x - - name: Tool Restor - run: ./build.ps1 RestoreDotNetTool --skip + - name: Build + run: ./build.ps1 Compile + - name: Unit Test + run: ./build.ps1 RunUnitTests --skip Compile - name: Mutation Test - working-directory: ./src/2-Services/Identity/Tests/Identity.Tests.Unit - run: dotnet stryker --reporter dashboard --dashboard-api-key 8dddccf5-538c-4388-ada2-791a98293fe2 + run: ./build.ps1 RunMutationTests --skip RunUnitTests + env: + STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} diff --git a/src/6-Build/Build.cs b/src/6-Build/Build.cs index fb64fdd43..aa6faff08 100644 --- a/src/6-Build/Build.cs +++ b/src/6-Build/Build.cs @@ -100,16 +100,16 @@ class Build : NukeBuild .DependsOn(RunUnitTests,RestoreDotNetTool) .Executes(() => { - //It will add dashboard report for CI - string report = "--reporter dashboard"; + //It will add dashboard reporter for CI + string reporter = "--reporter dashboard"; - //It just uses the reports specified in reports section in stryker-config.json + //It just uses the reporters specified in reporters section in stryker-config.json if (IsLocalBuild) - report = ""; + reporter = ""; var testProjects = Solution.AllProjects.Where(s => s.Name.EndsWith(".Tests.Unit")); foreach (var testProject in testProjects) - DotNet(workingDirectory: testProject.Directory, arguments: $"dotnet-stryker {report}"); + DotNet(workingDirectory: testProject.Directory, arguments: $"dotnet-stryker {reporter}"); }); }