stages: - lint - test cache: key: '$CI_COMMIT_REF_SLUG' paths: - .cache/pip - node_modules/ pretty-lint: stage: lint image: node:16 before_script: - npm install script: - npx prettier "**/*.yml" --check syntax-test: stage: test image: python:3.11 before_script: - pip install ansible --quiet script: - ansible-playbook playbook.yml --syntax-check