mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
30 lines
693 B
YAML
30 lines
693 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [22, 23]
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm run lint
|
|
- name: Check innerHTML usage
|
|
run: node scripts/check-innerhtml.mjs --report
|
|
- name: Security audit
|
|
run: npm audit --omit=dev --audit-level=high || true
|
|
- run: npm test
|