--wip-- [skip ci]

This commit is contained in:
Henrik Hüttemann 2023-09-01 14:28:23 +02:00
parent 2982f764c5
commit 6bf1bf9c81
No known key found for this signature in database
GPG Key ID: 9F7BD10E0A8A111E

View File

@ -1,49 +1,9 @@
variables: variables:
- &node_image 'node:20.5.1'
- &create_synapse_access_token >- - &create_synapse_access_token >-
echo '{"user_id":"ci-dummy","access_token":"ci-dummy","home_server":"ci-dummy","device_id":"ci-dummy"}' > src/config/synapse_access_token.json echo '{"user_id":"ci-dummy","access_token":"ci-dummy","home_server":"ci-dummy","device_id":"ci-dummy"}' > src/config/synapse_access_token.json
steps: steps:
lint-markdown:
image: markdownlint/markdownlint:0.12.0
group: test
commands:
- mdl .
check-pre-commit:
image: python:3.11.5
group: test
environment:
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
commands:
- pip install pre-commit
- pre-commit run --all-files
node-install-dependencies: node-install-dependencies:
image: *node_image image: node:18.16.0
commands: commands:
- npm clean-install - 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-test:
image: *node_image
commands:
- *create_synapse_access_token
- npm test --ci
node-compile:
image: *node_image
commands:
- *create_synapse_access_token
- npm run compile