Skip to content

Commit

Permalink
add generation of vercel-commerce .dev.vars file in playwright workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz committed Oct 1, 2024
1 parent 0d9bde4 commit 8a812bd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ jobs:
run: npm install -g pnpm && pnpm install
- name: build all workers
run: pnpm -r build:worker
- name: Generate .dev.vars file for vercel-commerce app
run: |
echo 'COMPANY_NAME = "Cloudflare"' >> ./examples/vercel-commerce/.dev.vars
echo 'TWITTER_CREATOR = "@Cloudflare"' >> ./examples/vercel-commerce/.dev.vars
echo 'TWITTER_SITE = "https://www.cloudflare.com/"' >> ./examples/vercel-commerce/.dev.vars
echo 'SITE_NAME = "My Store"' >> ./examples/vercel-commerce/.dev.vars
echo 'SHOPIFY_STORE_DOMAIN="https://graphql.myshopify.com"' >> ./examples/vercel-commerce/.dev.vars
echo 'SHOPIFY_STOREFRONT_ACCESS_TOKEN="${{ secrets.SHOPIFY_STOREFRONT_ACCESS_TOKEN }}"' >> ./examples/vercel-commerce/.dev.vars
echo 'SHOPIFY_REVALIDATION_SECRET=""' >> ./examples/vercel-commerce/.dev.vars
- name: Install Playwright browsers
run: pnpm run install-playwright
- name: Run playwright tests
Expand Down

0 comments on commit 8a812bd

Please sign in to comment.