Files
BetterDesk/.github/workflows/web-nodejs-ci.yml
T
UNITRONIX 317365c766 Add dev/main branching, automated versioning, and update channel switcher.
Introduce bump-version.js with CI workflows for patch bumps on dev and
stable releases on main, plus panel and installer UI to choose stable vs
development GitHub update branches.
2026-06-07 16:48:31 +02:00

41 lines
835 B
YAML

name: Web Console CI
on:
push:
branches: [main, dev]
paths:
- 'web-nodejs/**'
- '.github/workflows/web-nodejs-ci.yml'
pull_request:
branches: [main, dev]
paths:
- 'web-nodejs/**'
- '.github/workflows/web-nodejs-ci.yml'
permissions:
contents: read
jobs:
test-and-audit:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web-nodejs
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
cache-dependency-path: web-nodejs/package.json
- name: Install dependencies
run: npm install --no-audit --no-fund
- name: npm audit (high+)
run: npm audit --omit=dev --audit-level=high
- name: Run tests
run: npm run test:ci