From e2a804a587aa0451a29e211266fa7e40d5e34451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Sat, 25 Jul 2026 17:08:44 -0700 Subject: [PATCH] Move test CI files to ./bin --- .github/workflows/test.yml | 4 ++-- shared.ps1 => bin/shared.ps1 | 0 test.ps1 => bin/test.ps1 | 11 ++++++----- 3 files changed, 8 insertions(+), 7 deletions(-) rename shared.ps1 => bin/shared.ps1 (100%) rename test.ps1 => bin/test.ps1 (92%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dd7a5b69..6f802f3d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/shared.ps1 b/bin/shared.ps1 similarity index 100% rename from shared.ps1 rename to bin/shared.ps1 diff --git a/test.ps1 b/bin/test.ps1 similarity index 92% rename from test.ps1 rename to bin/test.ps1 index bb547e97..9a4f1ef4 100644 --- a/test.ps1 +++ b/bin/test.ps1 @@ -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)] @@ -23,7 +23,7 @@ param ( ) # Import shared functionality -. ./shared.ps1 +. (Join-Path $PSScriptRoot "shared.ps1") function Clean($BuildDir) { Write-Output "Cleaning previous build" @@ -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