rocketchat2matrix/.woodpecker.yaml
Henrik Hüttemann c7e0afb8d3
Update Woodpecker config for version 1
- `pipeline:` renamed to `steps:`
- changed file extension from `yml` to `yaml`, to align with other files

For more info, see <https://woodpecker-ci.org/docs/next/migrations>
2023-08-17 13:38:49 +02:00

50 lines
1.1 KiB
YAML

variables:
- &node_image 'node:20-alpine'
- &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:latest
group: test
commands:
- mdl .
check-pre-commit:
image: python:latest
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
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