mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-11 13:49:03 +00:00
abe0d52fe4
Move Docker/CI/installers to Node 24 and Go 1.26 images, bump Alpine server runtime, apply safe npm/Go patch updates, migrate SNMP to pysnmp, and document deferred majors.
42 lines
944 B
YAML
42 lines
944 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:
|
|
if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[version-bump]')
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: web-nodejs
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24'
|
|
cache: npm
|
|
cache-dependency-path: web-nodejs/package-lock.json
|
|
|
|
- name: Install dependencies
|
|
run: npm ci --no-audit --no-fund
|
|
|
|
- name: npm audit (moderate+)
|
|
run: npm audit --omit=dev --audit-level=moderate
|
|
|
|
- name: Run tests
|
|
run: npm run test:ci
|