File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 2424 - run : yarn test
2525 env :
2626 CI : true
27+ eslint :
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/checkout@v2
31+ - name : Setup Node
32+ uses : actions/setup-node@v2
33+ with :
34+ node-version : 17
35+ - name : Cache Yarn
36+ uses : actions/cache@v2
37+ with :
38+ path : ' **/node_modules'
39+ key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
40+ restore-keys : |
41+ ${{ runner.os }}-yarn-
42+ - run : yarn install --frozen-lockfile
43+ - run : yarn lint-fix
44+ - name : Auto commit fixed code
45+ id : auto-commit-action
46+ uses : stefanzweifel/git-auto-commit-action@v4
47+ with :
48+ commit_message : Apply auto lint-fix changes
49+ branch : ${{ github.head_ref }}
50+ - name : eslint
51+ if : steps.auto-commit-action.outputs.changes_detected == 'false'
52+ uses : reviewdog/action-eslint@v1
53+ with :
54+ level : warning
55+ reporter : github-pr-review
Original file line number Diff line number Diff line change 2424 "build:main" : " tsc -p tsconfig.main.json" ,
2525 "build:module" : " tsc -p tsconfig.module.json" ,
2626 "lint" : " eslint --ext .ts ." ,
27+ "lint-fix" : " eslint --fix --ext .ts ." ,
2728 "generate" : " run-p build:* && graphql-codegen" ,
2829 "prepublish" : " run-p build:*"
2930 },
You can’t perform that action at this time.
0 commit comments