-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add operator specific eslint * fix some js operator module eslint issues * undo exhaustive-deps fix * require eslint for PRs * fix package path * remove lint push trigger * more lint fixes for operators * lint app, use workflow call * mv changes to lint-app * add lint requirement * no max warnings * rm 2204 install --------- Co-authored-by: Benjamin Kane <[email protected]>
- Loading branch information
1 parent
8205caf
commit 6fd7309
Showing
3 changed files
with
51 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Lint App | ||
|
||
on: workflow_call | ||
|
||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v3 | ||
id: changes | ||
with: | ||
filters: | | ||
changes: | ||
- 'app/**' | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "16" | ||
|
||
- name: Cache Node Modules | ||
id: node-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
app/node_modules | ||
app/.yarn/cache | ||
key: node-modules-${{ hashFiles('app/yarn.lock') }} | ||
|
||
- name: Install Dependencies | ||
if: steps.node-cache.outputs.cache-hit != 'true' | ||
run: cd app && yarn install | ||
|
||
- name: Read ESLint Packages List and Lint | ||
if: steps.changes.outputs.changes == 'true' | ||
run: | | ||
cd app | ||
ESLINT_PACKAGES=$(grep -v '^#' ./eslint-packages.txt | xargs) | ||
yarn eslint $ESLINT_PACKAGES |
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# require these paths to pass linting | ||
# for PRs to be merge-able | ||
packages/operators |