api: split pulling API changes and regenerating new API
For checking wether the api was tempered with, we need separate action, that just checks the code against the currently pulled spec. This introduces two subactions for `npx api`. These are `npx api:generate` and `npx api:pull`.
This commit is contained in:
parent
82e096a19c
commit
25144511ad
5 changed files with 27 additions and 5 deletions
2
.github/workflows/dev-checks.yml
vendored
2
.github/workflows/dev-checks.yml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Check for manual changes to API
|
||||
run: npm run api && [ -z "$(git status --porcelain=v1 2>/dev/null)" ] && echo "✓ No manual API changes." || echo "✗ API manually changed, please refer to the README for the procedure to follow for programmatically generated API endpoints." && [ -z "$(git status --porcelain=v1 2>/dev/null)" ]
|
||||
run: npm run api:generate && [ -z "$(git status --porcelain=v1 2>/dev/null)" ] && echo "✓ No manual API changes." || echo "✗ API manually changed, please refer to the README for the procedure to follow for programmatically generated API endpoints." && [ -z "$(git status --porcelain=v1 2>/dev/null)" ]
|
||||
- name: Run build
|
||||
run: npm run build
|
||||
- name: Run lint check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue