From a87201bb6253e4f6b89cbdd669c9547bbbbb2668 Mon Sep 17 00:00:00 2001 From: "hanthor-hive-agent[bot]" Date: Sun, 28 Jun 2026 08:13:23 -0400 Subject: [PATCH 1/2] [quality] ci: run *.test.mjs unit tests in lint workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a unit test runner step to the js-syntax job that executes all *.test.mjs files found in scripts/ and scripts/__tests__/. Previously only syntax checking was performed — test regressions in scripts like sync-org-docs.mjs or build-iso-index.mjs would go undetected in CI. Also updates the test summary table to report unit test status. Fixes #34 Signed-off-by: Quality Agent Signed-off-by: hanthor-hive-agent[bot] --- .github/workflows/lint.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f264564..2f66523 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,7 +39,7 @@ jobs: # Check for broken internal links using a lightweight markdown link checker js-syntax: - name: Node.js Syntax Check + name: Node.js Syntax & Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901abe5b8200bef0e37dffb14cc0ad4d7e # v4 @@ -67,6 +67,22 @@ jobs: done exit $FAILED + - name: Run unit tests + run: | + echo "=== Running unit tests ===" + FAILED=0 + for f in scripts/__tests__/*.test.mjs scripts/*.test.mjs; do + [[ -f "$f" ]] || continue + echo " Running: $f" + if ! node "$f"; then + echo " FAILED" + FAILED=1 + else + echo " OK" + fi + done + exit $FAILED + link-check: name: Internal Link Check runs-on: ubuntu-latest @@ -103,4 +119,5 @@ jobs: echo "|---|---|" >> "$GITHUB_STEP_SUMMARY" echo "| Markdown Lint | completed |" >> "$GITHUB_STEP_SUMMARY" echo "| Node.js Syntax | completed |" >> "$GITHUB_STEP_SUMMARY" + echo "| Unit Tests | completed |" >> "$GITHUB_STEP_SUMMARY" echo "| Internal Link Check | completed |" >> "$GITHUB_STEP_SUMMARY" From c23933973dbbbb1fb50f6f7e43bc33655be06701 Mon Sep 17 00:00:00 2001 From: hive-outreach-agent Date: Sun, 28 Jun 2026 08:28:58 -0400 Subject: [PATCH 2/2] [scanner] fix: replace invalid action SHAs with correct v4 hashes Signed-off-by: hive-outreach-agent --- .github/workflows/lint.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2f66523..da540ee 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,9 +21,9 @@ jobs: name: Markdown Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901abe5b8200bef0e37dffb14cc0ad4d7e # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - - uses: actions/setup-node@cd93095a6e160be2cc06e0158b140f5f8aa19670 # v4 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: '20' @@ -42,9 +42,9 @@ jobs: name: Node.js Syntax & Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901abe5b8200bef0e37dffb14cc0ad4d7e # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - - uses: actions/setup-node@cd93095a6e160be2cc06e0158b140f5f8aa19670 # v4 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: '20' @@ -87,7 +87,7 @@ jobs: name: Internal Link Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901abe5b8200bef0e37dffb14cc0ad4d7e # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: Check for broken internal references run: |