Skip to content

Commit 3a1a189

Browse files
authored
Merge pull request #59 from datavisyn/thinkh/cypress-spec-parameter
feat: add `spec` parameter to Cypress run options
2 parents 7579563 + 9e4d2a3 commit 3a1a189

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build-node-python.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
type: string
2525
required: false
2626
default: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || !!startsWith(github.ref, 'refs/heads/release-') || !!startsWith(github.ref, 'refs/heads/dependabot')}}
27+
cypress_spec_param:
28+
description: "Value for the `--spec` parameter. Example: `cypress/e2e/your_spec.cy.ts`. Will only work if cypress_enable: true."
29+
type: string
30+
required: false
31+
default: ''
2732
playwright_enable:
2833
description: "Global enable for playwright"
2934
type: boolean
@@ -212,6 +217,7 @@ jobs:
212217
make start
213218
wait-on: "http://localhost:8080, http://localhost:9000/health"
214219
env: ${{ secrets.CYPRESS_ENV }}
220+
spec: ${{ inputs.cypress_spec_param }}
215221
# rspack currently does not support Cypress component tests
216222
# - name: Run cypress component tests
217223
# uses: cypress-io/github-action@v6

0 commit comments

Comments
 (0)