Skip to content

Commit 5a9922d

Browse files
authored
Add script to find unknown web-features IDs for triage (#3051)
web-features IDs are used by other projects, and there's no linting in place to guarantee that only valid IDs are used. Invalid IDs can appear becaues of typos, changes to web-features, or because an ID is used speculatively with the expectation it will be added to web-features. By reporting on the use of unknown IDs, we can catch these problems. If it becomes too common we might consider some form of linting in the monitored projects, but for now this is a lightweight approach that allows for maximum flexibility early in the lifecycle of a feature.
1 parent 5de3610 commit 5a9922d

File tree

4 files changed

+2184
-1421
lines changed

4 files changed

+2184
-1421
lines changed

.github/workflows/audit_consumers.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Audit Consumers
2+
3+
on:
4+
# Runs at midnight on Mondays 03:45 UTC, or manually triggered
5+
schedule:
6+
- cron: "45 3 * * 1"
7+
workflow_dispatch:
8+
9+
jobs:
10+
audit-consumers:
11+
if: github.repository == 'web-platform-dx/web-features'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version-file: .node-version
18+
cache: npm
19+
- run: npm ci
20+
- run: npm run build
21+
- run: npm run audit-consumers

0 commit comments

Comments
 (0)