DEV: Update CI workflows

This commit is contained in:
Discourse CI 2020-10-09 19:12:14 +00:00
parent 0d7fe398ac
commit 11ea96f073
1 changed files with 6 additions and 3 deletions

View File

@ -39,9 +39,12 @@ jobs:
- name: Prettier
run: |
yarn prettier -v
[ -d "assets" ] && \
yarn prettier --list-different \
"assets/**/*.{scss,js,es6}"
if [ -d "assets" ]; then \
yarn prettier --list-different \
"assets/**/*.{scss,js,es6}" \
else \
exit 0 \
fi
- name: Rubocop
run: bundle exec rubocop .