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

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

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3c2b32e..a16d2ec 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"

GitHub sha: 8e475323

1 Like

This commit appears in #10821 which was approved by eviltrout and jjaffeux. It was merged by CvX.