Skip to content

Commit 54b4508

Browse files
committed
Enforce OpenAPI drift in CI
1 parent 1ad45bc commit 54b4508

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,15 @@ jobs:
5858
uses: actions/setup-node@v4
5959
with:
6060
node-version-file: ".tool-versions"
61+
cache: npm
62+
cache-dependency-path: frontend/package-lock.json
63+
64+
- name: Install frontend dependencies for OpenAPI client verification
65+
run: npm ci
66+
working-directory: frontend
6167

62-
- name: Verify generated OpenAPI is up to date
63-
run: bundle exec rake openapi:verify
68+
- name: Verify generated OpenAPI spec and client are up to date
69+
run: make openapi-verify
6470

6571
- name: Lint OpenAPI contract
6672
run: make openapi-lint
@@ -83,9 +89,6 @@ jobs:
8389
- name: Install dependencies
8490
run: npm ci
8591

86-
- name: Verify generated OpenAPI client is up to date
87-
run: npm run openapi:verify
88-
8992
- name: Typecheck frontend
9093
run: npm run typecheck
9194

0 commit comments

Comments
 (0)