26 lines
446 B
YAML
26 lines
446 B
YAML
stages:
|
|
- lint
|
|
- test
|
|
|
|
cache:
|
|
key: $CI_COMMIT_REF_SLUG
|
|
paths:
|
|
- .cache/pip
|
|
- node_modules/
|
|
|
|
lint:
|
|
stage: lint
|
|
image: node:12
|
|
before_script:
|
|
- npm install
|
|
script:
|
|
- npx prettier '**/*.yml' --check
|
|
|
|
syntax-test:
|
|
stage: test
|
|
image: python:3.7
|
|
before_script:
|
|
- pip install ansible --quiet
|
|
- ansible-galaxy install --role-file requirements.yml
|
|
script:
|
|
- ansible-playbook playbook.yml --syntax-check
|