Browse Source

Revert "ci: update yml"

This reverts commit 4696c1f3fd32a1be08969c2ea3634078ea1d8886.

Noticed tests aren't running on our own PRs e.g. #11887.
We'll especially need tests to run on PRs off master
Gabriel Horner 6 months ago
parent
commit
3552c1870c

+ 4 - 0
.github/workflows/build.yml

@@ -2,6 +2,10 @@ name: CI
 
 
 on:
 on:
   push:
   push:
+    branches: [master]
+    paths-ignore:
+      - '*.md'
+  pull_request:
     branches: [master, "feat/db"]
     branches: [master, "feat/db"]
     paths-ignore:
     paths-ignore:
       - '*.md'
       - '*.md'

+ 8 - 0
.github/workflows/clj-e2e.yml

@@ -2,6 +2,14 @@ name: Clojure E2E
 
 
 on:
 on:
   push:
   push:
+    branches: [master]
+    paths:
+      - 'clj-e2e/**'
+      - '.github/workflows/clj-e2e.yml'
+      - src/**
+      - deps/**
+      - packages/**
+  pull_request:
     branches: [master, "feat/db"]
     branches: [master, "feat/db"]
     paths:
     paths:
       - 'clj-e2e/**'
       - 'clj-e2e/**'

+ 8 - 0
.github/workflows/clj-rtc-e2e.yml

@@ -2,6 +2,14 @@ name: Clojure RTC E2E
 
 
 on:
 on:
   push:
   push:
+    branches: [master]
+    paths:
+      - 'clj-e2e/**'
+      - '.github/workflows/clj-rtc-e2e.yml'
+      - src/**
+      - deps/**
+      - packages/**
+  pull_request:
     branches: [master, "feat/db"]
     branches: [master, "feat/db"]
     paths:
     paths:
       - 'clj-e2e/**'
       - 'clj-e2e/**'

+ 6 - 0
.github/workflows/db.yml

@@ -3,6 +3,12 @@ name: logseq/db CI
 on:
 on:
   # Path filters ensure jobs only kick off if a change is made to db
   # Path filters ensure jobs only kick off if a change is made to db
   push:
   push:
+    branches: [master]
+    paths:
+      - 'deps/db/**'
+      - '.github/workflows/db.yml'
+      - '!deps/db/**.md'
+  pull_request:
     branches: [master, "feat/db"]
     branches: [master, "feat/db"]
     paths:
     paths:
       - 'deps/db/**'
       - 'deps/db/**'

+ 8 - 1
.github/workflows/graph-parser.yml

@@ -4,13 +4,20 @@ on:
   # Path filters ensure jobs only kick off if a change is made to graph-parser or
   # Path filters ensure jobs only kick off if a change is made to graph-parser or
   # its local dependencies
   # its local dependencies
   push:
   push:
-    branches: [master, "feat/db"]
+    branches: [master]
     paths:
     paths:
       - 'deps/graph-parser/**'
       - 'deps/graph-parser/**'
       # db is a local dep that could break functionality in this lib and should trigger this
       # db is a local dep that could break functionality in this lib and should trigger this
       - 'deps/db/**'
       - 'deps/db/**'
       - '.github/workflows/graph-parser.yml'
       - '.github/workflows/graph-parser.yml'
       - '!deps/graph-parser/**.md'
       - '!deps/graph-parser/**.md'
+  pull_request:
+    branches: [master, "feat/db"]
+    paths:
+      - 'deps/graph-parser/**'
+      - 'deps/db/**'
+      - '.github/workflows/graph-parser.yml'
+      - '!deps/graph-parser/**.md'
 
 
 defaults:
 defaults:
   run:
   run:

+ 6 - 0
.github/workflows/logseq-common.yml

@@ -3,6 +3,12 @@ name: logseq/common CI
 on:
 on:
   # Path filters ensure jobs only kick off if a change is made to common
   # Path filters ensure jobs only kick off if a change is made to common
   push:
   push:
+    branches: [master]
+    paths:
+      - 'deps/common/**'
+      - '.github/workflows/logseq-common.yml'
+      - '!deps/common/**.md'
+  pull_request:
     branches: [master, "feat/db"]
     branches: [master, "feat/db"]
     paths:
     paths:
       - 'deps/common/**'
       - 'deps/common/**'

+ 8 - 1
.github/workflows/outliner.yml

@@ -4,13 +4,20 @@ on:
   # Path filters ensure jobs only kick off if a change is made to outliner or
   # Path filters ensure jobs only kick off if a change is made to outliner or
   # its local dependencies
   # its local dependencies
   push:
   push:
-    branches: [master, "feat/db"]
+    branches: [master]
     paths:
     paths:
       - 'deps/outliner/**'
       - 'deps/outliner/**'
       # db is a local dep that could break functionality in this lib and should trigger this
       # db is a local dep that could break functionality in this lib and should trigger this
       - 'deps/db/**'
       - 'deps/db/**'
       - '.github/workflows/outliner.yml'
       - '.github/workflows/outliner.yml'
       - '!deps/outliner/**.md'
       - '!deps/outliner/**.md'
+  pull_request:
+    branches: [master, "feat/db"]
+    paths:
+      - 'deps/outliner/**'
+      - 'deps/db/**'
+      - '.github/workflows/outliner.yml'
+      - '!deps/outliner/**.md'
 
 
 defaults:
 defaults:
   run:
   run:

+ 8 - 1
.github/workflows/publishing.yml

@@ -4,13 +4,20 @@ on:
   # Path filters ensure jobs only kick off if a change is made to publishing or
   # Path filters ensure jobs only kick off if a change is made to publishing or
   # its local dependencies
   # its local dependencies
   push:
   push:
-    branches: [master, "feat/db"]
+    branches: [master]
     paths:
     paths:
       - 'deps/publishing/**'
       - 'deps/publishing/**'
       # db is a local dep that could break functionality in this lib and should trigger this
       # db is a local dep that could break functionality in this lib and should trigger this
       - 'deps/db/**'
       - 'deps/db/**'
       - '.github/workflows/publishing.yml'
       - '.github/workflows/publishing.yml'
       - '!deps/publishing/**.md'
       - '!deps/publishing/**.md'
+  pull_request:
+    branches: [master, "feat/db"]
+    paths:
+      - 'deps/publishing/**'
+      - 'deps/db/**'
+      - '.github/workflows/publishing.yml'
+      - '!deps/publishing/**.md'
 
 
 defaults:
 defaults:
   run:
   run: