Skip to content

Commit ca86ed0

Browse files
committed
change: add eslint check at CI
1 parent 73aca6a commit ca86ed0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,21 @@ jobs:
1717
- uses: actions/setup-node@v1
1818
with:
1919
node-version: 12
20+
- uses: actions/cache@v2
21+
with:
22+
path: node_modules
23+
key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
24+
restore-keys: |
25+
${{ runner.OS }}-build-${{ hashFiles('package.json') }}-
26+
${{ runner.OS }}-build-
2027
- run: npm install
2128
- run: npm run build
29+
- run: npm run lint:report
30+
continue-on-error: true
31+
- uses: ataylorme/eslint-annotate-action@1.1.2
32+
with:
33+
repo-token: ${{ secrets.GITHUB_TOKEN }}
34+
report-json: 'eslint_report.json'
2235
- run: npm run pack
2336
if: github.event_name != 'pull_request'
2437
- name: Create Pull Request

0 commit comments

Comments
 (0)