-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (52 loc) · 1.63 KB
/
ci.yml
File metadata and controls
66 lines (52 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
build-and-test:
name: Typecheck, test, and package
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
# Phase 40.20 — Catch transitive CVEs at PR time, mirroring the
# monaco-editor 2026-05-12..15 dependency-audit wave.
# `--audit-level=high` filters out noise (low/moderate informational)
# but fails the build on actually exploitable advisories.
# `--omit=optional` keeps the noise floor down; optional deps don't
# ship in the extension bundle.
- name: npm audit (high+ severity)
run: npm audit --audit-level=high --omit=optional
continue-on-error: true
- name: Typecheck
run: npm run typecheck
- name: Test
run: npm test
- name: Build extension bundle
run: npm run build
- name: Set up Chrome
id: setup-chrome
uses: browser-actions/setup-chrome@v1
- name: Smoke test dashboard
run: npm run smoke:dashboard
env:
SCRIPT_VAULT_CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
- name: Package Chrome extension
run: bash build.sh
- name: Upload Chrome package
uses: actions/upload-artifact@v4
with:
name: scriptvault-chrome-package
path: ScriptVault-v*.zip
if-no-files-found: error