Skip to content

Commit

Permalink
ci: update cypress-related cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Oct 6, 2023
1 parent 4f51ccc commit 3e6fd97
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: Pull Requests Command - Cypress

jobs:
check_comment:
name: Check comment for /cypress-test
name: Check comment for /cypress2
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request }}
steps:
Expand All @@ -17,7 +17,7 @@ jobs:
uses: xt0rted/slash-command-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
command: cypress-test
command: cypress2
reaction: "true"
reaction-type: "eyes"
allow-edits: "false"
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
working-directory: xyz/test-project
run: yarn webiny deploy apps/website --env dev

# Generates a new cypress.json config.
# Generates a new cypress/cypress.config.ts config.
- name: Create Cypress config
working-directory: dev
run: yarn setup-cypress --projectFolder ../xyz/test-project
Expand All @@ -212,7 +212,7 @@ jobs:
- name: Save Cypress config
id: save-cypress-config
working-directory: dev
run: echo "cypress-config=$(cat cypress.json | tr -d ' \t\n\r')" >> $GITHUB_OUTPUT
run: echo "cypress-config=$(cat cypress/cypress.config.ts | tr -d ' \t\n\r')" >> $GITHUB_OUTPUT

- name: Cypress - run installation wizard test
working-directory: dev
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:

- name: Set up Cypress config
working-directory: dev
run: echo '${{ needs.e2e-wby-cms-ddb-project-setup.outputs.cypress-config }}' > cypress.json
run: echo '${{ needs.e2e-wby-cms-ddb-project-setup.outputs.cypress-config }}' > cypress/cypress.config.ts

- name: Cypress - run "${{ matrix.cypress-folder }}" tests
working-directory: dev
Expand Down Expand Up @@ -458,7 +458,7 @@ jobs:
working-directory: xyz/test-project
run: yarn webiny deploy apps/website --env dev

# Generates a new cypress.json config.
# Generates a new cypress/cypress.config.ts config.
- name: Create Cypress config
working-directory: dev
run: yarn setup-cypress --projectFolder ../xyz/test-project
Expand All @@ -468,7 +468,7 @@ jobs:
- name: Save Cypress config
id: save-cypress-config
working-directory: dev
run: echo "cypress-config=$(cat cypress.json | tr -d ' \t\n\r')" >> $GITHUB_OUTPUT
run: echo "cypress-config=$(cat cypress/cypress.config.ts | tr -d ' \t\n\r')" >> $GITHUB_OUTPUT

- name: Cypress - run installation wizard test
working-directory: dev
Expand Down Expand Up @@ -534,7 +534,7 @@ jobs:

- name: Set up Cypress config
working-directory: dev
run: echo '${{ needs.e2e-wby-cms-ddb-es-project-setup.outputs.cypress-config }}' > cypress.json
run: echo '${{ needs.e2e-wby-cms-ddb-es-project-setup.outputs.cypress-config }}' > cypress/cypress.config.ts

- name: Cypress - run "${{ matrix.cypress-folder }}" tests
working-directory: dev
Expand Down

0 comments on commit 3e6fd97

Please sign in to comment.