mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
feat(ci): rebuild openapi client code in CI and check for differences
This ensures that we fail CI if the openapi client code that's commited to git is different than what the current code would generate
This commit is contained in:
12
.travis.yml
12
.travis.yml
@@ -107,6 +107,18 @@ jobs:
|
||||
<<: *DEFAULTS_JS
|
||||
script: make lint-docs
|
||||
|
||||
- stage: Lint
|
||||
name: Verify OpenAPI client code
|
||||
if: (repo = prymitive/karma AND type != pull_request) OR (repo != prymitive/karma AND type = pull_request)
|
||||
language: generic
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- docker-ce
|
||||
script:
|
||||
- travis_retry make openapi-client
|
||||
- git diff --exit-code
|
||||
|
||||
- stage: Snapshots
|
||||
name: Percy UI snapshots
|
||||
if: (repo = prymitive/karma AND type != pull_request) OR (repo != prymitive/karma AND type = pull_request)
|
||||
|
||||
4
Makefile
4
Makefile
@@ -167,6 +167,10 @@ format-go: .build/deps-build-go.ok
|
||||
format-js: .build/deps-build-node.ok
|
||||
cd ui && ./node_modules/.bin/prettier --write 'src/**/*.js'
|
||||
|
||||
.PHONY: openapi-client
|
||||
openapi-client:
|
||||
for f in $(wildcard internal/mapper/*/Dockerfile) ; do $(MAKE) -C `dirname "$$f"` ; done
|
||||
|
||||
.PHONY: show-version
|
||||
show-version:
|
||||
@echo $(VERSION)
|
||||
|
||||
Reference in New Issue
Block a user