Skip to content

Commit

Permalink
DEV: Update CI linting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkshine committed Jul 10, 2024
1 parent 30943e2 commit 709e888
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/component-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 12
node-version: ">=18"

- name: Yarn install
run: yarn install

- name: ESLint
if: ${{ always() }}
run: yarn eslint --ext .js,.js.es6 --no-error-on-unmatched-pattern {test,javascripts}
run: yarn eslint --ext .js,.js.es6,.gjs --no-error-on-unmatched-pattern {test,javascripts}

- name: Prettier
if: ${{ always() }}
Expand All @@ -32,7 +32,7 @@ jobs:
yarn prettier -v
shopt -s extglob
if ls @(javascripts|desktop|mobile|common|scss)/**/*.@(scss|js|es6) &> /dev/null; then
yarn prettier --list-different "@(javascripts|desktop|mobile|common|scss)/**/*.{scss,js,es6}"
yarn prettier --list-different "@(javascripts|desktop|mobile|common|scss)/**/*.{scss,js,es6,gjs,hbs}"
fi
if ls test/**/*.@(js|es6) &> /dev/null; then
yarn prettier --list-different "test/**/*.{js,es6}"
Expand Down

0 comments on commit 709e888

Please sign in to comment.