Add yarn check CI

This commit is contained in:
Michael Weimann 2022-11-27 16:39:15 +01:00
parent 9d9211c054
commit 1b83d0bb77
No known key found for this signature in database
GPG Key ID: 34F0524D4DA694A1
1 changed files with 7 additions and 3 deletions

View File

@ -34,12 +34,16 @@ check-php-style:
script: script:
- phpcs -p --no-colors --basepath="$PWD" - phpcs -p --no-colors --basepath="$PWD"
check-frontend-style: # does everything that depends on packages installed by yarn
check-frontend:
image: node:alpine image: node:alpine
stage: validate stage: validate
needs:
- validate-yarn
before_script: before_script:
- yarn - yarn --frozen-lockfile
script: script:
- yarn check
- yarn lint - yarn lint
check-editorconfig: check-editorconfig:
@ -97,7 +101,7 @@ build-image:
needs: needs:
- check-editorconfig - check-editorconfig
- check-php-style - check-php-style
- check-frontend-style - check-frontend
- generate-version - generate-version
- validate-composer - validate-composer
- validate-yarn - validate-yarn