Skip to content

Commit

Permalink
Create eslint-plugin-diff.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
paleite authored Jul 28, 2022
1 parent 42b167a commit 48b2831
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/eslint-plugin-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Run ESLint on your changes only
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install modules
run: yarn
- name: Run ESLint on your changes only
env:
ESLINT_PLUGIN_DIFF_COMMIT: $GITHUB_HEAD_REF
run: eslint --ext .js,.jsx,.ts,.tsx .

0 comments on commit 48b2831

Please sign in to comment.