Skip to content
Merged
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches:
- main
- feature/v2-upgrade
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
validate:
name: Validate Bot
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: '24'
package-manager-cache: false

- name: Install dependencies
run: npm ci

- name: Check JavaScript syntax
run: |
find src scripts test -type f -name '*.js' -print0 |
xargs -0 -r -n 1 node --check

- name: Run automated tests
run: node --test test/*.test.js

- name: Security audit
run: npm audit --omit=dev
Loading
Loading