Skip to content

Commit

Permalink
Create lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
manojVivek committed Jul 15, 2020
1 parent e5a12e2 commit 9a7e6dd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint

on: pull_request

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hallee/eslint-action@1.0.3
# 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}}
source-root: optional-sub-dir

0 comments on commit 9a7e6dd

Please sign in to comment.