include: - template: Dependency-Scanning.gitlab-ci.yml - remote: 'https://git.spooner.io/ci-templates/composer-packages/-/raw/main/composer-packages.yml' cache: key: "$CI_COMMIT_REF_NAME-$CI_JOB_STAGE" paths: - Build/cache/ - Build/node_modules/ stages: - packages - test - build test:typoscript: stage: test image: composer:2.0.7 before_script: - composer global require helmich/typo3-typoscript-lint script: - /tmp/vendor/bin/typoscript-lint -c typoscript-lint.yml --fail-on-warnings test:php: stage: test image: ekreative/php-cs-fixer:2 variables: GIT_STRATEGY: "clone" script: - php-cs-fixer fix --config=Build/.php_cs --format=gitlab > report.json - cat report.json artifacts: reports: codequality: - report.json build: image: node:12 stage: build before_script: - npm config set cache cache/npm/ --global - cd Build script: - npm install > /dev/null - npm run ci dependencies: [] artifacts: paths: - Resources/Public/