diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-06-09 10:49:58 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-06-09 09:32:52 +0000 |
commit | 64b202b21a6b06e0bafbc419e80cb69ea6b2cb95 (patch) | |
tree | 5ca9ba0408ff36bae11fa9a31fd0d7422b6c763e /.github | |
parent | ec4987f71e331513b308e12351d304c7c8180f3b (diff) | |
download | nextcloud-server-64b202b21a6b06e0bafbc419e80cb69ea6b2cb95.tar.gz nextcloud-server-64b202b21a6b06e0bafbc419e80cb69ea6b2cb95.zip |
Create lint-eslint-when-unrelated.yml
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint-eslint-when-unrelated.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/lint-eslint-when-unrelated.yml b/.github/workflows/lint-eslint-when-unrelated.yml new file mode 100644 index 00000000000..7a2e9f05814 --- /dev/null +++ b/.github/workflows/lint-eslint-when-unrelated.yml @@ -0,0 +1,39 @@ +# This workflow is provided via the organization template repository +# +# https://github.com/nextcloud/.github +# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization +# +# Use lint-eslint together with lint-eslint-when-unrelated to make eslint a required check for GitHub actions +# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks + +name: Lint eslint + +on: + pull_request: + paths-ignore: + - '.github/workflows/**' + - 'src/**' + - 'appinfo/info.xml' + - 'package.json' + - 'package-lock.json' + - 'tsconfig.json' + - '.eslintrc.*' + - '.eslintignore' + - '**.js' + - '**.ts' + - '**.vue' + +permissions: + contents: read + +jobs: + lint: + permissions: + contents: none + + runs-on: ubuntu-latest + + name: eslint + + steps: + - run: 'echo "No eslint required"' |