]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(CI): Add empty eslint and node when unrelated (PHP only) 40101/head
authorJoas Schilling <coding@schilljs.com>
Fri, 2 Jun 2023 06:34:54 +0000 (08:34 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 29 Aug 2023 13:47:38 +0000 (15:47 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
.github/workflows/lint-eslint-when-unrelated.yml
.github/workflows/node-when-unrelated.yml [new file with mode: 0644]

index 7a2e9f05814d5e44718f813548fc0a92e4e99d0e..c8e3f0605f9492a0c5ee241e3d65cb53cdbcb6db 100644 (file)
@@ -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 (file)
index 0000000..5957422
--- /dev/null
@@ -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"'