Skip to content

Commit

Permalink
chore: run Cypress on src change
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Feb 8, 2025
1 parent 1b54095 commit 8ca6dac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
e2e:
needs: [changes, build]

if: ${{ always() && !contains(needs.*.result, 'failure') && !startsWith(github.head_ref, 'dependabot') && (needs.changes.outputs.build == 'true' || needs.changes.outputs.e2e == 'true') }}
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') }}

runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You will need [Node.js 20](https://nodejs.org/).
## Commands

- launch the dev server with `npm run serve`
- watch only some packages wuth `npm run serve:filter`
- watch only some packages wuth `npm run serve-filter`
- launch the documentation with `npm run doc:serve`
- launch the Cypress runner with `npm run e2e:open`
- register all package for npm link with `npm run npm-link`
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint": "turbo run lint",
"test": "turbo run test",
"serve": "turbo run watch --concurrency 50",
"serve:filter": "run() { read filters; turbo run watch --concurrency 50 $filters; }; FORCE_COLOR=true node ./build/select-packages.mjs | run",
"serve-filter": "run() { read filters; turbo run watch --concurrency 50 $filters; }; FORCE_COLOR=true node ./build/select-packages.mjs | run",
"npm-link": "turbo run npm-link --output-logs=new-only",
"doc:build": "turbo run build-doc",
"doc:serve": "turbo run serve-doc",
Expand All @@ -38,7 +38,7 @@
"@types/mocha": "^10.0.9",
"@types/three": "^0.173.0",
"alive-server": "^1.3.0",
"cypress": "^14.0.0",
"cypress": "^13.17.0",
"cypress-mochawesome-reporter": "^3.8.2",
"cypress-on-fix": "^1.1.0",
"cypress-visual-regression": "^5.2.2",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2248,10 +2248,10 @@ cypress-visual-regression@^5.2.2:
pngjs "^6.0.0"
sanitize-filename "^1.6.3"

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

0 comments on commit 8ca6dac

Please sign in to comment.