Run checks and compilation in CI

This commit is contained in:
Henrik Hüttemann 2023-05-20 11:17:09 +02:00
parent 09d5f1c806
commit 5810f3e237
No known key found for this signature in database
GPG Key ID: 9F7BD10E0A8A111E

View File

@ -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