Skip to content

Commit ef1d1b6

Browse files
committed
Add script to find unknown web-features IDs for triage
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 565f599 commit ef1d1b6

File tree

4 files changed

+2183
-1446
lines changed

4 files changed

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

0 commit comments

Comments
 (0)