@mcptoolshop/a11y-evidence-engine 0.3.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,8 +3,29 @@ name: CI
3
3
  on:
4
4
  push:
5
5
  branches: [ main ]
6
+ paths:
7
+ - "src/**"
8
+ - "bin/**"
9
+ - "fixtures/**"
10
+ - "test/**"
11
+ - "package.json"
12
+ - "package-lock.json"
13
+ - ".github/workflows/**"
6
14
  pull_request:
7
15
  branches: [ main ]
16
+ paths:
17
+ - "src/**"
18
+ - "bin/**"
19
+ - "fixtures/**"
20
+ - "test/**"
21
+ - "package.json"
22
+ - "package-lock.json"
23
+ - ".github/workflows/**"
24
+ workflow_dispatch:
25
+
26
+ concurrency:
27
+ group: ${{ github.workflow }}-${{ github.ref }}
28
+ cancel-in-progress: true
8
29
 
9
30
  jobs:
10
31
  test:
@@ -12,7 +33,7 @@ jobs:
12
33
 
13
34
  strategy:
14
35
  matrix:
15
- node-version: [18.x, 20.x, 22.x]
36
+ node-version: [20.x, 22.x]
16
37
 
17
38
  steps:
18
39
  - uses: actions/checkout@v4
@@ -31,9 +52,16 @@ jobs:
31
52
 
32
53
  - name: Verify CLI works
33
54
  run: |
34
- node bin/a11y-engine.js scan fixtures/html --out test-results
55
+ node bin/a11y-engine.js scan fixtures/bad --out test-results || test $? -eq 2
35
56
  test -d test-results
36
57
 
58
+ - name: Upload coverage
59
+ if: matrix.node-version == '22.x'
60
+ uses: codecov/codecov-action@v4
61
+ with:
62
+ token: ${{ secrets.CODECOV_TOKEN }}
63
+ flags: engine
64
+
37
65
  lint:
38
66
  runs-on: ubuntu-latest
39
67
 
@@ -43,7 +71,7 @@ jobs:
43
71
  - name: Use Node.js
44
72
  uses: actions/setup-node@v4
45
73
  with:
46
- node-version: '20.x'
74
+ node-version: '22.x'
47
75
  cache: 'npm'
48
76
 
49
77
  - name: Install dependencies
@@ -51,3 +79,13 @@ jobs:
51
79
 
52
80
  - name: Check for syntax errors
53
81
  run: node --check bin/a11y-engine.js src/cli.js
82
+
83
+ dep-audit:
84
+ runs-on: ubuntu-latest
85
+ steps:
86
+ - uses: actions/checkout@v4
87
+ - uses: actions/setup-node@v4
88
+ with:
89
+ node-version: 22
90
+ - run: npm ci
91
+ - run: npm audit --omit=dev
@@ -0,0 +1,50 @@
1
+ name: Deploy site to GitHub Pages
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths:
7
+ - 'site/**'
8
+ - '.github/workflows/pages.yml'
9
+ workflow_dispatch:
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ permissions:
16
+ contents: read
17
+ pages: write
18
+ id-token: write
19
+
20
+ jobs:
21
+ build:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+
26
+ - uses: actions/setup-node@v4
27
+ with:
28
+ node-version: 22
29
+
30
+ - name: Install site dependencies
31
+ working-directory: site
32
+ run: npm ci
33
+
34
+ - name: Build site
35
+ working-directory: site
36
+ run: npm run build
37
+
38
+ - uses: actions/upload-pages-artifact@v3
39
+ with:
40
+ path: site/dist
41
+
42
+ deploy:
43
+ needs: build
44
+ runs-on: ubuntu-latest
45
+ environment:
46
+ name: github-pages
47
+ url: ${{ steps.deployment.outputs.page_url }}
48
+ steps:
49
+ - id: deployment
50
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,48 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+
8
+ concurrency:
9
+ group: ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ jobs:
13
+ publish:
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ contents: read
17
+ id-token: write
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - uses: actions/setup-node@v4
22
+ with:
23
+ node-version: 22
24
+ registry-url: https://registry.npmjs.org
25
+
26
+ - name: Install dependencies
27
+ run: |
28
+ if [ -f package-lock.json ]; then
29
+ npm ci
30
+ else
31
+ npm install
32
+ fi
33
+
34
+ - run: npm run build --if-present
35
+
36
+ - run: npm test --if-present
37
+
38
+ - name: Publish to npm
39
+ continue-on-error: true
40
+ run: |
41
+ if [ -z "$NODE_AUTH_TOKEN" ]; then
42
+ echo "::warning::NPM_TOKEN secret not set — skipping npm publish"
43
+ exit 0
44
+ fi
45
+ npm publish --provenance --access public
46
+ env:
47
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
48
+