-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 |