浏览代码

chore(ci): add paths in cypress workflow

走鹃 3 年之前
父节点
当前提交
7deb7d2d61
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      .github/workflows/cypress.yml

+ 12 - 0
.github/workflows/cypress.yml

@@ -3,8 +3,20 @@ name: 'test:cypress'
 on:
   pull_request:
     branches: [ main, release, milestone**, test-cypress ]
+    paths:
+      - 'cypress/**'
+      - 'packages/**'
+      - '!packages/**/__test__/**'
+      - '!packages/**/*.test.[tj]sx?'
+      - '!packages/**/*.md'
   push:
     branches: [ main, release, milestone**, test-cypress ]
+    paths:
+      - 'cypress/**'
+      - 'packages/**'
+      - '!packages/**/__test__/**'
+      - '!packages/**/*.test.[tj]sx?'
+      - '!packages/**/*.md'
 
 jobs:
   install: