Skip to content

Commit

Permalink
Separating Cypress Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-desmond committed Sep 14, 2023
1 parent a87fa2f commit 5106172
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Cypress Tests
name: Run Cypress Component Tests

on: [workflow_dispatch, push]

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run Cypress E2E Tests

on: [workflow_dispatch, push]


jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cypress run
uses: cypress-io/github-action@v3
with:
project: ./
browser: chrome
build: yarn build
start: yarn start
wait-on: "http://localhost:3000"
env:
SITECORE_CH1_ENDPOINT_URL: ${{ secrets.SITECORE_CH1_ENDPOINT_URL }}
SITECORE_CH1_CLIENT_KEY: ${{ secrets.SITECORE_CH1_CLIENT_KEY }}

0 comments on commit 5106172

Please sign in to comment.