Skip to content

Commit

Permalink
refactor: extract CI steps from build script
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-shirbandi committed Oct 8, 2023
1 parent 3dc3b90 commit 2c68bd6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@ name: build

on:
pull_request:
branches: [ "master" ]
branches: ["master"]
push:
branches: [ "master" ]

branches: ["master"]

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Run nuke build
run: ./build.ps1
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: build
run: ./build.ps1 Compile
- name: unit test
run: ./build.ps1 RunUnitTests
- name: mutation test
run: ./build.ps1 RunMutationTests
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
2 changes: 1 addition & 1 deletion src/6-Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Build : NukeBuild
readonly Solution Solution;

[Parameter]
AbsolutePath TestResultDirectory = RootDirectory + "/Artifacts/Test-Results/";
AbsolutePath TestResultDirectory = RootDirectory + "/.nuke/Artifacts/Test-Results/";

Target Information => _ => _
.Executes(() =>
Expand Down

0 comments on commit 2c68bd6

Please sign in to comment.