From a3778f656c801a26622ca1a5ba8a1d69a6439395 Mon Sep 17 00:00:00 2001 From: Kstala Date: Fri, 28 Apr 2023 17:19:15 +0200 Subject: [PATCH 1/3] feat: add plywright report artifacts --- .github/workflows/e2e-tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index be7a3f73f..0b5c8d1b7 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -35,3 +35,11 @@ jobs: run: pnpm run test:e2e env: BASE_E2E_URL: ${{ github.event.deployment_status.target_url }} + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 7 From 64f660e00666ea7d79a7f6894bf12dcfa0d544aa Mon Sep 17 00:00:00 2001 From: Kstala Date: Thu, 4 May 2023 18:23:35 +0200 Subject: [PATCH 2/3] chore: report path fixes --- .github/workflows/e2e-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 0b5c8d1b7..f9210f0b5 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -38,8 +38,8 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v3 - if: always() + if: ${{ failure() }} with: name: playwright-report - path: playwright-report/ + path: apps/e2e-tests retention-days: 7 From 41e467a029caa1a583ab74f53ee9d9238fa1fead Mon Sep 17 00:00:00 2001 From: Kstala Date: Tue, 13 Jun 2023 11:59:35 +0200 Subject: [PATCH 3/3] feat: add test for stackblitz templates --- .github/workflows/vue-blank.yml | 37 ++++++++++++++++++++++++++++ .github/workflows/vue-demo-store.yml | 37 ++++++++++++++++++++++++++++ .github/workflows/vue-vite-blank.yml | 37 ++++++++++++++++++++++++++++ 3 files changed, 111 insertions(+) create mode 100644 .github/workflows/vue-blank.yml create mode 100644 .github/workflows/vue-demo-store.yml create mode 100644 .github/workflows/vue-vite-blank.yml diff --git a/.github/workflows/vue-blank.yml b/.github/workflows/vue-blank.yml new file mode 100644 index 000000000..5f61bc8f5 --- /dev/null +++ b/.github/workflows/vue-blank.yml @@ -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 diff --git a/.github/workflows/vue-demo-store.yml b/.github/workflows/vue-demo-store.yml new file mode 100644 index 000000000..4b712effb --- /dev/null +++ b/.github/workflows/vue-demo-store.yml @@ -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 diff --git a/.github/workflows/vue-vite-blank.yml b/.github/workflows/vue-vite-blank.yml new file mode 100644 index 000000000..636dd41b1 --- /dev/null +++ b/.github/workflows/vue-vite-blank.yml @@ -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