Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cfortuner committed Aug 15, 2023
1 parent a5f2150 commit a8a045c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: ESLint and Prettier Check
name: ESLint Check

on: push

jobs:
lint-check:
name: Lint with ESLint and Prettier
name: Lint with ESLint
runs-on: ubuntu-latest

steps:
Expand All @@ -19,5 +19,15 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Lint with Prettier
run: npx prettier --check .
- name: Get list of files in this PR
id: get-changed-files
uses: lots0logs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Lint with ESLint
run: |
for file in ${{ steps.get-changed-files.outputs.all }}
do
npx eslint $file --ext .js,.jsx,.ts,.tsx
done

0 comments on commit a8a045c

Please sign in to comment.