mirror of
https://github.com/LeviSnoot/MediaFixer.git
synced 2024-12-02 18:00:02 +01:00
Create lint.yml
This commit is contained in:
parent
2b84387aa0
commit
a7350f588b
1 changed files with 18 additions and 0 deletions
18
.github/workflows/lint.yml
vendored
Normal file
18
.github/workflows/lint.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
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: .eslintrc.js
|
||||
execute-on-files:
|
||||
- index.js
|
Loading…
Reference in a new issue