Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add template linting to the CI workflow (#10821)

Jarek Radosz8e47532304fc
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3c2b32e6ed5..a16d2ecf762 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -147,7 +147,7 @@ jobs:
- name: ESLint (core)
if: env.BUILD_TYPE == 'LINT' && env.TARGET == 'CORE'
- run: yarn eslint --ext .js,.js.es6 --no-error-on-unmatched-pattern app/assets/javascripts
+ run: yarn eslint --ext .js,.js.es6 --no-error-on-unmatched-pattern app/assets/javascripts
- name: ESLint (core plugins)
if: env.BUILD_TYPE == 'LINT' && env.TARGET == 'CORE'
@@ -175,6 +175,19 @@ jobs:
"plugins/**/assets/stylesheets/**/*.scss" \
"plugins/**/assets/javascripts/**/*.{js,es6}"
+ - name: Ember template lint (core and core plugins)
+ if: env.BUILD_TYPE == 'LINT' && env.TARGET == 'CORE'
+ run: |
+ yarn ember-template-lint \
+ app/assets/javascripts \
+ plugins/**/assets/javascripts
+
+ - name: Ember template lint (all plugins)
+ if: env.BUILD_TYPE == 'LINT' && env.TARGET == 'PLUGINS'
+ run: |
+ yarn ember-template-lint \
+ plugins/**/assets/javascripts
+
- name: Core English locale
if: env.BUILD_TYPE == 'LINT' && env.TARGET == 'CORE'
run: bundle exec ruby script/i18n_lint.rb "config/**/locales/{client,server}.en.yml"