Skip to content

Commit

Permalink
Add GitHub action to run e2e tests on new PR's
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-desmond committed Sep 13, 2023
1 parent 4b75e14 commit 5294cc4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: E2E on Chrome

on: [push]

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

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

0 comments on commit 5294cc4

Please sign in to comment.