diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3e037ae --- /dev/null +++ b/.github/workflows/main.yml @@ -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 }}