File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Data Audit
1+ name : Security & Data Audit
22
33on :
44 pull_request :
55 paths :
66 - ' src/docs.json'
77 - ' tests/audit/**'
8+ - ' package.json'
9+ - ' package-lock.json'
810 schedule :
911 - cron : ' 0 0 * * *' # Daily at midnight
1012 workflow_dispatch :
1113
1214jobs :
13- audit-links :
15+ documentation-audit :
16+ name : Documentation Audit
1417 runs-on : ubuntu-latest
1518 permissions :
1619 contents : read
3033 DOCS_AUDIT_MAX_TOTAL : ${{ github.event_name == 'schedule' && '0' || '50' }}
3134 # Advisories are non-blocking for PRs
3235 continue-on-error : ${{ github.event_name == 'pull_request' }}
36+
37+ dependency-audit :
38+ name : Dependency Audit
39+ runs-on : ubuntu-latest
40+ permissions :
41+ contents : read
42+ steps :
43+ - uses : actions/checkout@v6
44+ - name : Setup Node.js
45+ uses : actions/setup-node@v6.3.0
46+ with :
47+ node-version : ' 24'
48+ cache : npm
49+ - name : Run npm audit
50+ run : npm audit --omit-dev --audit-level=critical
51+ # Advisories are non-blocking for PRs
52+ continue-on-error : ${{ github.event_name == 'pull_request' }}
Original file line number Diff line number Diff line change @@ -16,27 +16,18 @@ jobs:
1616 node-version : [22.x, 24.x]
1717 steps :
1818 - uses : actions/checkout@v6
19+
1920 - name : Setup Node.js ${{ matrix.node-version }}
2021 uses : actions/setup-node@v6.3.0
2122 with :
2223 node-version : ${{ matrix.node-version }}
2324 cache : npm
24- - name : Node.js modules cache
25- uses : actions/cache@v5
26- id : modules-cache
27- with :
28- path : ${{ github.workspace }}/node_modules
29- key : ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/package-lock.json') }}
30- restore-keys : |
31- ${{ runner.os }}-${{ matrix.node-version }}-modules
25+
3226 - name : Install Node.js packages
33- if : ${{ steps.modules-cache.outputs.cache-hit != 'true' }}
3427 run : npm ci
35- - name : Audit packages
36- run : npm audit --audit-level=high
37- continue-on-error : true
28+
3829 - name : Lint and test
3930 run : npm run test:ci
31+
4032 - name : Confirm integration
41- if : ${{ success() }}
4233 run : npm run test:integration
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default {
3636 projects : [
3737 {
3838 displayName : 'unit' ,
39- roots : [ 'src' ] ,
39+ roots : [ '<rootDir>/ src' ] ,
4040 testMatch : [ '<rootDir>/src/**/*.test.ts' ] ,
4141 setupFilesAfterEnv : [ '<rootDir>/jest.setupTests.ts' ] ,
4242 ...baseConfig ,
@@ -64,7 +64,7 @@ export default {
6464 } ,
6565 {
6666 displayName : 'e2e' ,
67- roots : [ 'tests/e2e' ] ,
67+ roots : [ '<rootDir>/ tests/e2e' ] ,
6868 testMatch : [ '<rootDir>/tests/e2e/**/*.test.ts' ] ,
6969 setupFilesAfterEnv : [ '<rootDir>/tests/e2e/jest.setupTests.ts' ] ,
7070 transformIgnorePatterns : [
@@ -74,7 +74,7 @@ export default {
7474 } ,
7575 {
7676 displayName : 'audit' ,
77- roots : [ 'tests/audit' ] ,
77+ roots : [ '<rootDir>/ tests/audit' ] ,
7878 testMatch : [ '<rootDir>/tests/audit/**/*.test.ts' ] ,
7979 ...baseConfig
8080 }
Original file line number Diff line number Diff line change 3131 "release" : " changelog --non-cc --link-url https://github.com/patternfly/patternfly-mcp.git" ,
3232 "start" : " node dist/cli.js --log-stderr" ,
3333 "start:dev" : " tsx watch src/cli.ts --verbose --log-stderr" ,
34- "test" : " npm run test:spell && npm run test:spell-docs && npm run test:lint && npm run test:types && jest --selectProjects unit --roots=src/ " ,
35- "test:audit" : " jest --selectProjects audit --roots=tests/audit/ " ,
34+ "test" : " npm run test:spell && npm run test:spell-docs && npm run test:lint && npm run test:types && jest --selectProjects unit" ,
35+ "test:audit" : " jest --selectProjects audit" ,
3636 "test:ci" : " npm test -- --coverage" ,
3737 "test:dev" : " npm test -- --watchAll" ,
38- "test:integration" : " npm run build && NODE_OPTIONS='--experimental-vm-modules' jest --selectProjects e2e --roots=tests/e2e/ " ,
38+ "test:integration" : " npm run build && NODE_OPTIONS='--experimental-vm-modules' jest --selectProjects e2e" ,
3939 "test:integration-dev" : " npm run test:integration -- --watchAll" ,
4040 "test:lint" : " eslint ." ,
4141 "test:lint-fix" : " eslint . --fix" ,
You can’t perform that action at this time.
0 commit comments