Skip to content

Commit

Permalink
feat(githubAction): add eslint yml file to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
qingtiantongxie committed May 11, 2023
1 parent 3e5b054 commit 9551ac0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint

on: pull_request

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mrdivyansh/eslint-action@v1.0.7
# GITHUB_TOKEN in forked repositories is read-only
# https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
with:
repo-token: ${{secrets.GITHUB_TOKEN}}
eslint-rc: /pkg/web/.eslintrc.js
execute-on-files: /pkg/web/src

0 comments on commit 9551ac0

Please sign in to comment.