From 48b28311d0515f4b3362d223b39b8f691bde2698 Mon Sep 17 00:00:00 2001 From: Patrick Eriksson Date: Thu, 28 Jul 2022 18:59:11 +0200 Subject: [PATCH] Create eslint-plugin-diff.yml --- .github/workflows/eslint-plugin-diff.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/eslint-plugin-diff.yml diff --git a/.github/workflows/eslint-plugin-diff.yml b/.github/workflows/eslint-plugin-diff.yml new file mode 100644 index 0000000..cdb8256 --- /dev/null +++ b/.github/workflows/eslint-plugin-diff.yml @@ -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 .