FIX: Pretter linting step

This commit is contained in:
Jarek Radosz 2021-04-07 16:41:13 +02:00
parent d92bba85a0
commit 6605c104ac
1 changed files with 5 additions and 4 deletions

View File

@ -34,14 +34,15 @@ jobs:
- name: Prettier
if: ${{ always() }}
shell: bash
run: |
yarn prettier -v
shopt -s extglob
if ls assets/**/*.@(scss|js|es6) &> /dev/null; then \
yarn prettier --list-different "assets/**/*.{scss,js,es6}" ; \
if ls assets/**/*.@(scss|js|es6) &> /dev/null; then
yarn prettier --list-different "assets/**/*.{scss,js,es6}"
fi
if ls test/**/*.@(js|es6) &> /dev/null; 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