ci: combine lint-js and lint-scss into one job, lint

This commit is contained in:
Alex Gleason 2023-09-18 18:12:15 -05:00
parent be565b9290
commit 0e884b0b34
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 4 additions and 10 deletions

View File

@ -42,9 +42,9 @@ danger:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME - $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
allow_failure: true allow_failure: true
lint-js: lint:
stage: test stage: test
script: yarn lint:js script: yarn lint
only: only:
changes: changes:
- "**/*.js" - "**/*.js"
@ -53,16 +53,10 @@ lint-js:
- "**/*.mjs" - "**/*.mjs"
- "**/*.ts" - "**/*.ts"
- "**/*.tsx" - "**/*.tsx"
- ".eslintignore"
- ".eslintrc.cjs"
lint-sass:
stage: test
script: yarn lint:sass
only:
changes:
- "**/*.scss" - "**/*.scss"
- "**/*.css" - "**/*.css"
- ".eslintignore"
- ".eslintrc.cjs"
- ".stylelintrc.json" - ".stylelintrc.json"
# jest: # jest: