From 4ec56a3b3a16f6b920d54d77fab81d3ef1a2d6df Mon Sep 17 00:00:00 2001 From: Copilot <223556219+Copilot@users.noreply.github.com> Date: Sun, 29 Mar 2026 11:40:20 -0700 Subject: [PATCH] fix(ci): strip trailing slash from sample_dir path variable Fixes double-slash in path construction (./samples/name//package.json) found by Copilot code review. The glob samples/*/ produces paths with trailing slash which caused redundant // in require() paths. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/squad-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/squad-ci.yml b/.github/workflows/squad-ci.yml index 1556bc30..d3003bb9 100644 --- a/.github/workflows/squad-ci.yml +++ b/.github/workflows/squad-ci.yml @@ -361,6 +361,7 @@ jobs: SKIPPED=0 for sample_dir in samples/*/; do + sample_dir="${sample_dir%/}" sample=$(basename "$sample_dir") if [ ! -f "$sample_dir/package.json" ]; then