diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-06-01 18:09:13 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-06-02 00:26:03 +0200 |
commit | 5f8fefcfc21f4b793f93c72495d7eb9f3b902e1b (patch) | |
tree | f0532ff35d9ba4835c8bc617b09898b90cee5734 /.github/workflows/lint-eslint.yml | |
parent | 07dee9788a459e704a3d5d8d64049cad91f877e7 (diff) | |
download | nextcloud-server-5f8fefcfc21f4b793f93c72495d7eb9f3b902e1b.tar.gz nextcloud-server-5f8fefcfc21f4b793f93c72495d7eb9f3b902e1b.zip |
chore: update workflows from templates
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to '.github/workflows/lint-eslint.yml')
-rw-r--r-- | .github/workflows/lint-eslint.yml | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/.github/workflows/lint-eslint.yml b/.github/workflows/lint-eslint.yml index c08763ea946..08709bf1e2b 100644 --- a/.github/workflows/lint-eslint.yml +++ b/.github/workflows/lint-eslint.yml @@ -2,15 +2,31 @@ # # https://github.com/nextcloud/.github # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization - -name: Lint - -on: pull_request +# +# 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: + - '.github/workflows/**' + - 'src/**' + - 'apps/**/appinfo/info.xml' + - 'package.json' + - 'package-lock.json' + - 'tsconfig.json' + - '.eslintrc.*' + - '.eslintignore' + - '**.js' + - '**.ts' + - '**.vue' permissions: contents: read -concurrency: +concurrency: group: lint-eslint-${{ github.head_ref || github.run_id }} cancel-in-progress: true @@ -22,17 +38,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Read package.json node and npm engines version - uses: skjnldsv/read-package-engines-version-actions@v1.2 + uses: skjnldsv/read-package-engines-version-actions@0ce2ed60f6df073a62a77c0a4958dd0fc68e32e7 # v2.1 id: versions with: - fallbackNode: '^12' - fallbackNpm: '^6' + fallbackNode: '^16' + fallbackNpm: '^7' - name: Set up node ${{ steps.versions.outputs.nodeVersion }} - uses: actions/setup-node@v3 + uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3 with: node-version: ${{ steps.versions.outputs.nodeVersion }} |