Skip to content

Users/jon.tiritilli/auto id pr #37

Users/jon.tiritilli/auto id pr

Users/jon.tiritilli/auto id pr #37

Workflow file for this run

name: Test
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test
- name: Build action
run: npm run build
- name: Verify dist/index.js is up to date
run: |
git diff --exit-code dist/index.js || {
echo "::error::dist/index.js is out of date. Run 'npm run build' and commit the result."
exit 1
}
- name: Verify action rejects missing inputs
run: |
output=$(node dist/index.js 2>&1) && {
echo "::error::Action should have failed with missing inputs but exited 0"
exit 1
}
if echo "$output" | grep -q "Input required and not supplied\|deployment-status"; then
echo "Action correctly rejected missing inputs"
else
echo "::error::Action failed with unexpected output:"
echo "$output"
exit 1
fi