Run checks and compilation in CI
This commit is contained in:
parent
09d5f1c806
commit
5810f3e237
@ -1,13 +1,45 @@
|
|||||||
|
variables:
|
||||||
|
- &node_image 'node:20-alpine'
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
lint-markdown:
|
lint-markdown:
|
||||||
image: markdownlint/markdownlint:latest
|
image: markdownlint/markdownlint:latest
|
||||||
|
group: test
|
||||||
commands:
|
commands:
|
||||||
- mdl .
|
- mdl .
|
||||||
|
|
||||||
check-pre-commit:
|
check-pre-commit:
|
||||||
image: python:latest
|
image: python:latest
|
||||||
|
group: test
|
||||||
environment:
|
environment:
|
||||||
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
|
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
|
||||||
commands:
|
commands:
|
||||||
- pip install pre-commit
|
- pip install pre-commit
|
||||||
- pre-commit run --all-files
|
- pre-commit run --all-files
|
||||||
|
|
||||||
|
node-install-dependencies:
|
||||||
|
image: *node_image
|
||||||
|
commands:
|
||||||
|
- npm clean-install
|
||||||
|
|
||||||
|
node-lint:
|
||||||
|
image: *node_image
|
||||||
|
group: test
|
||||||
|
commands:
|
||||||
|
- npm run lint
|
||||||
|
|
||||||
|
node-format:
|
||||||
|
image: *node_image
|
||||||
|
group: test
|
||||||
|
commands:
|
||||||
|
- npm run format
|
||||||
|
|
||||||
|
node-compile:
|
||||||
|
image: *node_image
|
||||||
|
commands:
|
||||||
|
- npm run compile
|
||||||
|
|
||||||
|
# node-test:
|
||||||
|
# image: *node_image
|
||||||
|
# commands:
|
||||||
|
# - npm test
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user