summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-08-29 17:10:01 +0200
committerGitHub <noreply@github.com>2023-08-29 17:10:01 +0200
commit20969519f023bf320c1fe9fbda2d624b5e6b5c86 (patch)
tree4287b64a910cc6443aeec1d0d510d9aac2fe3255
parentb9a493ed9bfb0730e45f7419f29a1e3a8864a29c (diff)
parent6e4976c9f18614e70d6a13399e4e39362718732b (diff)
downloadnextcloud-server-20969519f023bf320c1fe9fbda2d624b5e6b5c86.tar.gz
nextcloud-server-20969519f023bf320c1fe9fbda2d624b5e6b5c86.zip
Merge pull request #40101 from nextcloud/backport/38545/stable27
[stable27] fix(CI): Add empty eslint and node when unrelated (PHP only)
-rw-r--r--.github/workflows/lint-eslint-when-unrelated.yml2
-rw-r--r--.github/workflows/node-when-unrelated.yml43
2 files changed, 44 insertions, 1 deletions
diff --git a/.github/workflows/lint-eslint-when-unrelated.yml b/.github/workflows/lint-eslint-when-unrelated.yml
index 7a2e9f05814..c8e3f0605f9 100644
--- a/.github/workflows/lint-eslint-when-unrelated.yml
+++ b/.github/workflows/lint-eslint-when-unrelated.yml
@@ -13,7 +13,7 @@ on:
paths-ignore:
- '.github/workflows/**'
- 'src/**'
- - 'appinfo/info.xml'
+ - 'apps/**/appinfo/info.xml'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
diff --git a/.github/workflows/node-when-unrelated.yml b/.github/workflows/node-when-unrelated.yml
new file mode 100644
index 00000000000..5957422d222
--- /dev/null
+++ b/.github/workflows/node-when-unrelated.yml
@@ -0,0 +1,43 @@
+# 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 node together with node-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: Node
+
+on:
+ pull_request:
+ paths-ignore:
+ - '.github/workflows/**'
+ - 'src/**'
+ - 'apps/**/appinfo/info.xml'
+ - 'package.json'
+ - 'package-lock.json'
+ - 'tsconfig.json'
+ - '**.js'
+ - '**.ts'
+ - '**.vue'
+ push:
+ branches:
+ - main
+ - master
+ - stable*
+
+concurrency:
+ group: node-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
+jobs:
+ build:
+ permissions:
+ contents: none
+
+ runs-on: ubuntu-latest
+
+ name: node
+ steps:
+ - name: Skip
+ run: 'echo "No JS/TS files changed, skipped Node"'