Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: stackblitz templates tests #225

Merged
merged 5 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/vue-blank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Vue Blank

run-name: Playwright is testing vue blank 🚀
on:
workflow_dispatch:
schedule:
- cron: '54 23 * * *'
jobs:
run-code_examples-tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- run: corepack enable
- run: pnpm --version
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- name: install
run: pnpm install --frozen-lockfile --prefer-offline

- name: Install dependencies with Playwright
run: |
pnpm playwright install --with-deps

- name: Run tests
run: |
cd apps/e2e-tests
BASE_E2E_URL=https://stackblitz.com/github/shopware/frontends/tree/main/templates/vue-blank npx playwright test checkStackblitzTemplates.spec.ts --project=chromium
37 changes: 37 additions & 0 deletions .github/workflows/vue-demo-store.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Vue demo store

run-name: Playwright is testing vue demo store 🚀
on:
workflow_dispatch:
schedule:
- cron: '52 23 * * *'
jobs:
run-code_examples-tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- run: corepack enable
- run: pnpm --version
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- name: install
run: pnpm install --frozen-lockfile --prefer-offline

- name: Install dependencies with Playwright
run: |
pnpm playwright install --with-deps

- name: Run tests
run: |
cd apps/e2e-tests
BASE_E2E_URL=https://stackblitz.com/github/shopware/frontends/tree/main/templates/vue-demo-store npx playwright test checkStackblitzTemplates.spec.ts --project=chromium
37 changes: 37 additions & 0 deletions .github/workflows/vue-vite-blank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Vue vite blank

run-name: Playwright is testing vue vite blank 🚀
on:
workflow_dispatch:
schedule:
- cron: '50 23 * * *'
jobs:
run-code_examples-tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- run: corepack enable
- run: pnpm --version
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- name: install
run: pnpm install --frozen-lockfile --prefer-offline

- name: Install dependencies with Playwright
run: |
pnpm playwright install --with-deps

- name: Run tests
run: |
cd apps/e2e-tests
BASE_E2E_URL=https://stackblitz.com/github/shopware/frontends/tree/main/templates/vue-vite-blank npx playwright test checkStackblitzTemplates.spec.ts --project=chromium