mirror of
https://github.com/prymitive/karma
synced 2026-08-17 11:27:01 +00:00
fix(ci): check if bootstrap and bootswatch versions are the same
This commit is contained in:
committed by
Łukasz Mierzwa
parent
943382d4b5
commit
b356eecbf3
@@ -140,6 +140,12 @@ jobs:
|
||||
language: shell
|
||||
script: make lint-nodejs-version
|
||||
|
||||
- stage: Lint
|
||||
name: Lint Bootstrap Version
|
||||
if: (repo = prymitive/karma AND type != pull_request) OR (fork = true AND type = pull_request)
|
||||
language: shell
|
||||
script: make lint-bootstrap-version
|
||||
|
||||
- stage: Lint
|
||||
name: Generate Changelog
|
||||
if: (repo = prymitive/karma AND type != pull_request) OR (fork = true AND type = pull_request)
|
||||
|
||||
@@ -18,5 +18,14 @@ lint-nodejs-version:
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
.PHONY: lint-bootstrap-version
|
||||
lint-bootstrap-version:
|
||||
$(eval BOOTSTRAP_VERSION := $(shell grep bootstrap ui/package.json | cut -d: -f2 | tr -d ' ",'))
|
||||
$(eval BOOTSWATCH_VERSION := $(shell grep bootswatch ui/package.json | cut -d: -f2 | tr -d ' ",'))
|
||||
@if [ "$(BOOTSTRAP_VERSION)" != "$(BOOTSWATCH_VERSION)" ]; then \
|
||||
echo "Bootstrap version mismatch: BOOTSTRAP_VERSION=$(BOOTSTRAP_VERSION) BOOTSWATCH_VERSION=$(BOOTSWATCH_VERSION)"; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
.PHONY: lint-versions
|
||||
lint-versions: lint-golang-version lint-nodejs-version
|
||||
|
||||
Reference in New Issue
Block a user