mirror of
https://github.com/vercel/commerce.git
synced 2025-05-08 10:47:51 +00:00
added cypress tests and GitHub action configuration
This commit is contained in:
parent
d4151fa12d
commit
b957d9e66c
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
@ -0,0 +1,23 @@
|
||||
name: E2E on Chrome
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
install:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v6
|
||||
with:
|
||||
project: ./cypress
|
||||
browser: chrome
|
||||
build: pnpm build
|
||||
start: pnpm start
|
||||
wait-on: 'http://localhost:3000'
|
||||
env:
|
||||
COMMERCE_PROVIDER: ${{ secrets.COMMERCE_PROVIDER }}
|
||||
NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN: ${{ secrets.NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN }}
|
||||
NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN: ${{ secrets.NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN }}
|
Loading…
x
Reference in New Issue
Block a user