diff options
author | Louis <6653109+artonge@users.noreply.github.com> | 2023-01-17 11:22:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-17 11:22:53 +0100 |
commit | a5bcecb0c7e8d4fb2a9f4bf16973614bff515edd (patch) | |
tree | 6cd25b5e876d558dce6f7bbf07425639ee930923 /.github/workflows/lint-eslint-when-unrelated.yml | |
parent | f72667819eafd7662099a6adeb4bec0358f22c95 (diff) | |
parent | c18c4a2a26054fdcbe8e5eee3cb8d5ebc51c68b5 (diff) |
Merge pull request #1582 from nextcloud/update-master-php-testing-versions
chore(CI): Update master php testing versions and workflow templates
Diffstat (limited to '.github/workflows/lint-eslint-when-unrelated.yml')
-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 00000000..63710eb6 --- /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 + +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"' |