--wip-- [skip ci]
This commit is contained in:
parent
2982f764c5
commit
6bf1bf9c81
@ -1,49 +1,9 @@
|
||||
variables:
|
||||
- &node_image 'node:20.5.1'
|
||||
- &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
|
||||
|
||||
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:
|
||||
image: *node_image
|
||||
image: node:18.16.0
|
||||
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-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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user