Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1
with:
dotnet-version: "9.0.200"
- run: ./test.ps1
dotnet-version: "10.0.100"
- run: ./bin/test.ps1
shell: pwsh
File renamed without changes.
11 changes: 6 additions & 5 deletions test.ps1 → bin/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
The slug of the exercise to verify (optional).
.EXAMPLE
The example below will verify the full solution
PS C:\> ./test.ps1
PS C:\> ./bin/test.ps1
.EXAMPLE
The example below will verify the "acronym" exercise
PS C:\> ./test.ps1 acronym
PS C:\> ./bin/test.ps1 acronym
#>

[CmdletBinding(SupportsShouldProcess)]
Expand All @@ -23,7 +23,7 @@ param (
)

# Import shared functionality
. ./shared.ps1
. (Join-Path $PSScriptRoot "shared.ps1")

function Clean($BuildDir) {
Write-Output "Cleaning previous build"
Expand Down Expand Up @@ -81,9 +81,10 @@ function Test-ExerciseImplementation($Exercise, $BuildDir, $PracticeExercisesDir
}


$buildDir = Join-Path $PSScriptRoot "build"
$repoRoot = Split-Path -Parent $PSScriptRoot
$buildDir = Join-Path $repoRoot "build"
$practiceExercisesDir = Join-Path $buildDir "practice"
$sourceDir = Resolve-Path "exercises"
$sourceDir = Join-Path $repoRoot "exercises"

Clean $buildDir
Copy-Exercise $sourceDir $buildDir
Expand Down
Loading