Skip to content

Commit 8ca6dac

Browse files
committed
chore: run Cypress on src change
1 parent 1b54095 commit 8ca6dac

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
e2e:
7575
needs: [changes, build]
7676

77-
if: ${{ always() && !contains(needs.*.result, 'failure') && !startsWith(github.head_ref, 'dependabot') && (needs.changes.outputs.build == 'true' || needs.changes.outputs.e2e == 'true') }}
77+
if: ${{ always() && !contains(needs.*.result, 'failure') && !startsWith(github.head_ref, 'dependabot') && (needs.changes.outputs.build == 'true' || needs.changes.outputs.src == 'true' || needs.changes.outputs.e2e == 'true') }}
7878

7979
runs-on: ubuntu-latest
8080

docs/guide/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You will need [Node.js 20](https://nodejs.org/).
1111
## Commands
1212

1313
- launch the dev server with `npm run serve`
14-
- watch only some packages wuth `npm run serve:filter`
14+
- watch only some packages wuth `npm run serve-filter`
1515
- launch the documentation with `npm run doc:serve`
1616
- launch the Cypress runner with `npm run e2e:open`
1717
- register all package for npm link with `npm run npm-link`

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"lint": "turbo run lint",
1717
"test": "turbo run test",
1818
"serve": "turbo run watch --concurrency 50",
19-
"serve:filter": "run() { read filters; turbo run watch --concurrency 50 $filters; }; FORCE_COLOR=true node ./build/select-packages.mjs | run",
19+
"serve-filter": "run() { read filters; turbo run watch --concurrency 50 $filters; }; FORCE_COLOR=true node ./build/select-packages.mjs | run",
2020
"npm-link": "turbo run npm-link --output-logs=new-only",
2121
"doc:build": "turbo run build-doc",
2222
"doc:serve": "turbo run serve-doc",
@@ -38,7 +38,7 @@
3838
"@types/mocha": "^10.0.9",
3939
"@types/three": "^0.173.0",
4040
"alive-server": "^1.3.0",
41-
"cypress": "^14.0.0",
41+
"cypress": "^13.17.0",
4242
"cypress-mochawesome-reporter": "^3.8.2",
4343
"cypress-on-fix": "^1.1.0",
4444
"cypress-visual-regression": "^5.2.2",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,10 +2248,10 @@ cypress-visual-regression@^5.2.2:
22482248
pngjs "^6.0.0"
22492249
sanitize-filename "^1.6.3"
22502250

2251-
cypress@^14.0.0:
2252-
version "14.0.0"
2253-
resolved "https://registry.yarnpkg.com/cypress/-/cypress-14.0.0.tgz#a71cb0a243a0bfeb97b6973ab9c5291ca5288e93"
2254-
integrity sha512-kEGqQr23so5IpKeg/dp6GVi7RlHx1NmW66o2a2Q4wk9gRaAblLZQSiZJuDI8UMC4LlG5OJ7Q6joAiqTrfRNbTw==
2251+
cypress@^13.17.0:
2252+
version "13.17.0"
2253+
resolved "https://registry.yarnpkg.com/cypress/-/cypress-13.17.0.tgz#34c3d68080c4497eace0f353bd1629587a5f600d"
2254+
integrity sha512-5xWkaPurwkIljojFidhw8lFScyxhtiFHl/i/3zov+1Z5CmY4t9tjIdvSXfu82Y3w7wt0uR9KkucbhkVvJZLQSA==
22552255
dependencies:
22562256
"@cypress/request" "^3.0.6"
22572257
"@cypress/xvfb" "^1.2.4"

0 commit comments

Comments
 (0)