From 8e47532304fc7acad53f734370b859b4bd0cb736 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Mon, 5 Oct 2020 19:52:39 +0200 Subject: [PATCH] DEV: Add template linting to the CI workflow (#10821) --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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"