-
Notifications
You must be signed in to change notification settings - Fork 8
30 lines (28 loc) · 811 Bytes
/
audit.yml
File metadata and controls
30 lines (28 loc) · 811 Bytes
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
name: Data Audit
on:
pull_request:
paths:
- 'src/docs.json'
- 'tests/audit/**'
schedule:
- cron: '0 0 * * *' # Daily at midnight
workflow_dispatch:
jobs:
audit-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22.x
cache: npm
- name: Install dependencies
run: npm ci
- name: Run documentation audit
run: npm run test:audit
env:
# Higher limit for scheduled runs (0 = no limit), lower for PRs
DOCS_AUDIT_MAX_TOTAL: ${{ github.event_name == 'schedule' && '0' || '50' }}
# Advisories are non-blocking for PRs
continue-on-error: ${{ github.event_name == 'pull_request' }}