Skip to content
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
122 changes: 61 additions & 61 deletions .github/workflows/e2e-dev.yml
Original file line number Diff line number Diff line change
@@ -1,78 +1,78 @@
name: E2E — Dev

on:
push:
branches: [develop]
push:
branches: [develop]

concurrency:
group: e2e-dev-${{ github.sha }}
cancel-in-progress: true
group: e2e-dev-${{ github.sha }}
cancel-in-progress: true

jobs:
install:
name: Install dependencies
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
install:
name: Install dependencies
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'npm'
cache-dependency-path: puppeteer-tests/package-lock.json
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"
cache-dependency-path: puppeteer-tests/package-lock.json

- name: Install test dependencies
working-directory: puppeteer-tests
run: npm ci
- name: Install test dependencies
working-directory: puppeteer-tests
run: npm ci

- name: Cache node_modules and Puppeteer browsers
uses: actions/cache/save@v4
with:
path: |
puppeteer-tests/node_modules
~/.cache/puppeteer
key: nm-puppeteer-${{ runner.os }}-${{ hashFiles('puppeteer-tests/package-lock.json') }}
- name: Cache node_modules and Puppeteer browsers
uses: actions/cache/save@v4
with:
path: |
puppeteer-tests/node_modules
~/.cache/puppeteer
key: nm-puppeteer-${{ runner.os }}-${{ hashFiles('puppeteer-tests/package-lock.json') }}

e2e:
name: E2E dev — ${{ matrix.suite }}
needs: install
runs-on: ubuntu-latest
timeout-minutes: 10
e2e:
name: E2E dev — ${{ matrix.suite }}
needs: install
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
suite: [home, editor]
strategy:
fail-fast: false
matrix:
suite: [home, editor]

steps:
- uses: actions/checkout@v4
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "24"

- name: Restore node_modules and Puppeteer browsers
uses: actions/cache/restore@v4
with:
path: |
puppeteer-tests/node_modules
~/.cache/puppeteer
key: nm-puppeteer-${{ runner.os }}-${{ hashFiles('puppeteer-tests/package-lock.json') }}
- name: Restore node_modules and Puppeteer browsers
uses: actions/cache/restore@v4
with:
path: |
puppeteer-tests/node_modules
~/.cache/puppeteer
key: nm-puppeteer-${{ runner.os }}-${{ hashFiles('puppeteer-tests/package-lock.json') }}

- name: Run ${{ matrix.suite }} tests
working-directory: puppeteer-tests
run: node --test tests/${{ matrix.suite }}.js
env:
TARGET: dev
- name: Run ${{ matrix.suite }} tests
working-directory: puppeteer-tests
run: node --test tests/${{ matrix.suite }}.js
env:
TARGET: dev

- name: Upload debug artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: e2e-debug-dev-${{ matrix.suite }}
path: puppeteer-tests/screenshots/
retention-days: 7
if-no-files-found: ignore
- name: Upload debug artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: e2e-debug-dev-${{ matrix.suite }}
path: puppeteer-tests/screenshots/
retention-days: 7
if-no-files-found: ignore
168 changes: 84 additions & 84 deletions .github/workflows/e2e-local.yml
Original file line number Diff line number Diff line change
@@ -1,91 +1,91 @@
name: E2E — Local

on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

concurrency:
group: e2e-local-${{ github.ref }}
cancel-in-progress: true
group: e2e-local-${{ github.ref }}
cancel-in-progress: true

jobs:
install:
name: Install dependencies
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'npm'

- name: Install project dependencies
run: npm ci

- name: Install test dependencies
working-directory: puppeteer-tests
run: npm ci

- name: Cache node_modules and Puppeteer browsers
uses: actions/cache/save@v4
with:
path: |
node_modules
puppeteer-tests/node_modules
~/.cache/puppeteer
key: nm-${{ runner.os }}-${{ hashFiles('package-lock.json', 'puppeteer-tests/package-lock.json') }}

e2e:
name: E2E local — ${{ matrix.suite }}
needs: install
runs-on: ubuntu-latest
timeout-minutes: 15

strategy:
fail-fast: false
matrix:
suite: [home, editor]

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '24'

- name: Restore node_modules and Puppeteer browsers
uses: actions/cache/restore@v4
with:
path: |
node_modules
puppeteer-tests/node_modules
~/.cache/puppeteer
key: nm-${{ runner.os }}-${{ hashFiles('package-lock.json', 'puppeteer-tests/package-lock.json') }}

- name: Start dev server
run: npm run start -- --open false &
env:
BROWSER: none

- name: Wait for dev server
run: npx wait-on http://localhost:3000 --timeout 120000

- name: Run ${{ matrix.suite }} tests
working-directory: puppeteer-tests
run: node --test tests/${{ matrix.suite }}.js
env:
TARGET: local

- name: Upload debug artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: e2e-debug-${{ matrix.suite }}
path: puppeteer-tests/screenshots/
retention-days: 7
if-no-files-found: ignore
install:
name: Install dependencies
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"

- name: Install project dependencies
run: npm ci

- name: Install test dependencies
working-directory: puppeteer-tests
run: npm ci

- name: Cache node_modules and Puppeteer browsers
uses: actions/cache/save@v4
with:
path: |
node_modules
puppeteer-tests/node_modules
~/.cache/puppeteer
key: nm-${{ runner.os }}-${{ hashFiles('package-lock.json', 'puppeteer-tests/package-lock.json') }}

e2e:
name: E2E local — ${{ matrix.suite }}
needs: install
runs-on: ubuntu-latest
timeout-minutes: 15

strategy:
fail-fast: false
matrix:
suite: [home, editor]

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "24"

- name: Restore node_modules and Puppeteer browsers
uses: actions/cache/restore@v4
with:
path: |
node_modules
puppeteer-tests/node_modules
~/.cache/puppeteer
key: nm-${{ runner.os }}-${{ hashFiles('package-lock.json', 'puppeteer-tests/package-lock.json') }}

- name: Start dev server
run: npm run start -- --open false &
env:
BROWSER: none

- name: Wait for dev server
run: npx wait-on http://localhost:3000 --timeout 120000

- name: Run ${{ matrix.suite }} tests
working-directory: puppeteer-tests
run: node --test tests/${{ matrix.suite }}.js
env:
TARGET: local

- name: Upload debug artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: e2e-debug-${{ matrix.suite }}
path: puppeteer-tests/screenshots/
retention-days: 7
if-no-files-found: ignore
Loading
Loading