File tree Expand file tree Collapse file tree 4 files changed +72
-2
lines changed
Expand file tree Collapse file tree 4 files changed +72
-2
lines changed Original file line number Diff line number Diff line change 1+ name : 🔒 Audit Dependencies
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 3 * * 1' # every Monday at 03:00 UTC
6+ workflow_dispatch : # allow manual run
7+
8+ jobs :
9+ audit :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : ⬇️ Checkout repository
14+ uses : actions/checkout@v4
15+
16+ - name : 🟢 Setup Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : 22
20+ cache : ' npm'
21+
22+ - name : 📦 Install dependencies
23+ run : npm ci
24+
25+ - name : 🔍 Run npm audit
26+ run : |
27+ npm audit --audit-level=high || echo "Audit completed with vulnerabilities"
Original file line number Diff line number Diff line change 1+ name : 🧪 Test Coverage
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+
8+ jobs :
9+ coverage :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : ⬇️ Checkout repository
14+ uses : actions/checkout@v4
15+
16+ - name : 🟢 Setup Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : 22
20+ cache : ' npm'
21+
22+ - name : 📦 Install dependencies
23+ run : npm ci
24+
25+ - name : 🧪 Run tests with coverage
26+ run : npm run test:coverage
27+
28+ - name : 📤 Upload coverage to Codecov
29+ uses : codecov/codecov-action@v5
30+ with :
31+ token : ${{ secrets.CODECOV_TOKEN }}
32+ files : reports/coverage/lcov.info
33+ flags : unittests
34+ name : codecov-coverage-report
Original file line number Diff line number Diff line change 1717 - name : 🟢 Setup Node.js
1818 uses : actions/setup-node@v3
1919 with :
20- node-version : ' 22 '
20+ node-version : 22
2121
2222 - name : 📦 Install dependencies
2323 run : npm ci
2828 - name : 🔡 Type check
2929 run : npx tsc --noEmit
3030
31+ - name : 🧪 Run tests
32+ run : npm run test
33+
3134 - name : 🏗️ Build project
3235 run : npm run compile
3336
Original file line number Diff line number Diff line change 1818 - name : 🟢 Setup Node.js
1919 uses : actions/setup-node@v4
2020 with :
21- node-version : ' 22 '
21+ node-version : 22
2222 registry-url : ' https://registry.npmjs.org'
2323
2424 - name : 📦 Install dependencies
2727 - name : 🧪 Run lint
2828 run : npm run lint
2929
30+ - name : 🔡 Type check
31+ run : npx tsc --noEmit
32+
33+ - name : 🧪 Run tests
34+ run : npm run test
35+
3036 - name : 🛠️ Build package
3137 run : npm run compile
3238
You can’t perform that action at this time.
0 commit comments