Skip to content

feat: add /nuke slash command #21

feat: add /nuke slash command

feat: add /nuke slash command #21

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Syntax check all JS files
run: |
set -e
fail=0
while IFS= read -r f; do
if ! node --check "$f" 2>/dev/null; then
echo "::error file=$f::Syntax error in $f"
node --check "$f" || true
fail=1
fi
done < <(find . -name "*.js" -not -path "./node_modules/*")
if [ "$fail" -ne 0 ]; then
echo "::error::One or more JS files failed syntax check"
exit 1
fi
echo "All JS files passed syntax check."
- name: Run tests
run: npm test