This repository has been archived on 2025-05-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
transip-client-ansible/.gitlab-ci.yml
2021-05-29 20:23:49 +02:00

26 lines
471 B
YAML

stages:
- lint
- test
cache:
key: '$CI_COMMIT_REF_SLUG'
paths:
- .cache/pip
- node_modules/
pretty-lint:
stage: lint
image: node:12
before_script:
- npm install prettier --no-save
script:
- npx prettier "**/*.yml" --check
syntax-test:
stage: test
image: python:3.7
before_script:
- pip install ansible --quiet
- ansible-galaxy install -r roles/requirements.yml
script:
- ansible-playbook playbook.yml --syntax-check