File tree Expand file tree Collapse file tree 5 files changed +121
-25
lines changed
Expand file tree Collapse file tree 5 files changed +121
-25
lines changed Original file line number Diff line number Diff line change 1+ * @ JessB2000
Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : " npm"
4+ directory : " /"
5+ schedule :
6+ interval : " weekly"
7+ open-pull-requests-limit : 5
8+ versioning-strategy : increase
9+ allow :
10+ - dependency-type : direct
11+ groups :
12+ security :
13+ applies-to : security-updates
14+ patterns :
15+ - " *"
16+ minor-patches :
17+ update-types :
18+ - " minor"
19+ - " patch"
20+ labels :
21+ - " dependencies"
22+ - " security"
23+
24+ - package-ecosystem : " github-actions"
25+ directory : " /"
26+ schedule :
27+ interval : " weekly"
28+ groups :
29+ gh-actions :
30+ patterns :
31+ - " *"
32+ labels :
33+ - " ci"
34+ - " security"
Original file line number Diff line number Diff line change 11name : CI
22
33on :
4- push :
5- branches : [ main, develop ]
64 pull_request :
75 branches : [ main, develop ]
6+ push :
7+ branches : [ main, develop ]
8+
9+ permissions :
10+ contents : read
811
912jobs :
10- build :
13+ ci :
1114 runs-on : ubuntu-latest
12- permissions :
13- contents : write
1415
1516 steps :
1617 - uses : actions/checkout@v4
1718
18- - name : Setup Node.js
19- uses : actions/setup-node@v4
19+ - uses : actions/setup-node@v4
2020 with :
21- node-version : ' 23 '
22- cache : ' npm'
21+ node-version : 20
22+ cache : npm
2323
24- - name : Install dependencies
25- run : npm ci
24+ - name : Install dependencies (frozen)
25+ run : npm ci --ignore-scripts
2626
27- - name : Build project
28- run : npm run build
27+ # - name: Lint
28+ # run: npm run lint
2929
30- # - name: Run tests
31- # run: npm run test:ci
30+ - name : Security audit
31+ run : npm audit --omit=dev || true
3232
33- - name : Deploy HTML report to GitHub Pages
34- uses : peaceiris/actions-gh-pages@v4
35- with :
36- github_token : ${{ secrets.GITHUB_TOKEN }}
37- publish_dir : ./coverage/report
33+ # - name: Run tests
34+ # run: npm run test:ci
35+
36+ - name : Build
37+ run : npm run build
3838
39- - name : Upload test results
39+ - name : Upload coverage
4040 uses : actions/upload-artifact@v4
4141 if : always()
4242 with :
43- name : test-results
44- path : |
45- coverage/
46- coverage/junit/
43+ name : coverage
44+ path : coverage/
4745 retention-days : 7
Original file line number Diff line number Diff line change 1+ name : " CodeQL"
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ permissions :
10+ contents : read
11+ security-events : write
12+
13+ jobs :
14+ codeql :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - uses : github/codeql-action/init@v3
21+ with :
22+ languages : javascript
23+
24+ - uses : github/codeql-action/analyze@v3
25+ if : github.event.pull_request.head.repo.fork == false
26+
27+ - uses : github/codeql-action/analyze@v3
28+ with :
29+ upload : false
30+ if : github.event.pull_request.head.repo.fork == true
31+
32+ - name : Export SARIF result
33+ if : github.event.pull_request.head.repo.fork == true
34+ uses : actions/upload-artifact@v4
35+ with :
36+ name : codeql-report
37+ path : codeql-results.sarif
Original file line number Diff line number Diff line change 1+ name : Deploy Coverage Report
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+
7+ permissions :
8+ contents : write
9+
10+ jobs :
11+ deploy-report :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : Download coverage
18+ uses : actions/download-artifact@v4
19+ with :
20+ name : coverage
21+
22+ - name : Deploy Coverage to GitHub Pages
23+ uses : peaceiris/actions-gh-pages@v4
24+ with :
25+ github_token : ${{ secrets.GITHUB_TOKEN }}
26+ publish_dir : ./coverage/report
You can’t perform that action at this time.
0 commit comments