Skip to content

Commit 7467695

Browse files
committed
ci(cypress): add cypress lint job and path filter
Add a lint-cypress job that runs yarn lint in the new cypress/ package on PRs touching cypress files, and wire a cypress path filter into the changes job.
1 parent d92e3e7 commit 7467695

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

.github/workflows/testing.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
php: ${{ steps.filter.outputs.php }}
2828
js: ${{ steps.filter.outputs.js }}
2929
client: ${{ steps.filter.outputs.client }}
30+
cypress: ${{ steps.filter.outputs.cypress }}
3031
api: ${{ steps.filter.outputs.api }}
3132
md: ${{ steps.filter.outputs.md }}
3233
steps:
@@ -45,6 +46,9 @@ jobs:
4546
client:
4647
- 'client/**'
4748
- '!**/*.md'
49+
cypress:
50+
- 'cypress/**'
51+
- '!**/*.md'
4852
api:
4953
- 'backend/**'
5054
- '!**/*.md'
@@ -157,6 +161,23 @@ jobs:
157161
- uses: mesh-research/github-actions/build-image@v2
158162
with:
159163
target: "web-lint-ci"
164+
lint-cypress:
165+
name: Cypress Lint
166+
runs-on: ubuntu-24.04
167+
needs: [changes]
168+
if: ${{ needs.changes.outputs.cypress == 'true' }}
169+
steps:
170+
- name: Checkout Code
171+
uses: actions/checkout@v4
172+
- uses: actions/setup-node@v4
173+
with:
174+
node-version: 22
175+
cache: yarn
176+
cache-dependency-path: cypress/yarn.lock
177+
- name: Install dependencies
178+
run: cd cypress && yarn install
179+
- name: Lint
180+
run: cd cypress && yarn lint
160181
docs-build:
161182
name: Docs Build
162183
runs-on: ubuntu-24.04

.lando.extras.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ cypress:
88
image: "cypress/base:18.16.1"
99
environment:
1010
ELECTRON_EXTRA_LAUNCH_ARGS: "--force-prefers-reduced-motion"
11+
NODE_TLS_REJECT_UNAUTHORIZED: "0"
1112
build:
12-
- cd /app/cypress && yarn
13+
- yarn config set strict-ssl false -g && cd /app/cypress && yarn --ignore-engines
1314
tooling:
1415
cypress:
1516
service: cypress

cypress/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"prettier": "3"
2323
},
2424
"engines": {
25-
"node": "^22.0.0 || ^20.0.0"
25+
"node": "^22.0.0 || ^20.0.0 || ^18.0.0"
2626
}
2727
}

0 commit comments

Comments
 (0)