DEV: Update CI workflows (#81)

Co-authored-by: davidtaylorhq <[email protected]>
This commit is contained in:
discoursebot
2021-07-02 17:02:39 +02:00
committed by GitHub
co-authored by davidtaylorhq
parent 07f0ea5463
commit c0bd802f78
2 changed files with 31 additions and 19 deletions
+10 -4
View File
@@ -29,20 +29,26 @@ jobs:
run: yarn install
- name: ESLint
if: ${{ always() }}
run: yarn eslint --ext .js,.js.es6 --no-error-on-unmatched-pattern {test,assets}/javascripts
- name: Prettier
if: ${{ always() }}
shell: bash
run: |
yarn prettier -v
if [ -d "assets" ]; then \
yarn prettier --list-different "assets/**/*.{scss,js,es6}" ; \
shopt -s extglob
if ls assets/**/*.@(scss|js|es6) &> /dev/null; then
yarn prettier --list-different "assets/**/*.{scss,js,es6}"
fi
if [ -d "test" ]; then \
yarn prettier --list-different "test/**/*.{js,es6}" ; \
if ls test/**/*.@(js|es6) &> /dev/null; then
yarn prettier --list-different "test/**/*.{js,es6}"
fi
- name: Ember template lint
if: ${{ always() }}
run: yarn ember-template-lint assets/javascripts
- name: Rubocop
if: ${{ always() }}
run: bundle exec rubocop .