Skip to content

Approval Gates: extend to non-ALM skills + plugin-wide hard-fail lint #126

Approval Gates: extend to non-ALM skills + plugin-wide hard-fail lint

Approval Gates: extend to non-ALM skills + plugin-wide hard-fail lint #126

# Deliberately separate from `power-pages-alm-lint.yml`.
# This workflow runs functional unit tests across ubuntu × windows × macos to
# catch OS-specific regressions in Node scripts. Slow (~30s on macOS).
# The sibling workflow runs fast policy enforcement on a single OS so red
# checks for gate-marker / catalog drift surface before this matrix finishes.
name: power-pages-script-tests
on:
pull_request:
branches:
- main
paths:
- "plugins/power-pages/**"
jobs:
test-power-pages-scripts:
name: test-power-pages-scripts (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup-node
uses: actions/setup-node@v4
with:
node-version: 20
- name: run-power-pages-script-tests
shell: bash
working-directory: plugins/power-pages/scripts/tests
run: node --test