Skip to content

Commit 8c944a0

Browse files
authored
Merge pull request #192 from KevinBatdorf/limit-block-css-load-once
2 parents df59248 + de2bd73 commit 8c944a0

50 files changed

Lines changed: 1385 additions & 3493 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 61 deletions
This file was deleted.
Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
11
name: Build production zip file
22
on:
3-
push:
4-
workflow_dispatch:
3+
push:
4+
workflow_dispatch:
5+
56
jobs:
6-
build:
7-
name: Build zip file
8-
concurrency:
9-
group: production - ${{ github.event.pull_request.number || github.ref }}
10-
cancel-in-progress: true
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Check out code
14-
uses: actions/checkout@v4
15-
- name: npm install and build
16-
run: |
17-
npm ci
18-
npm run build
19-
env:
20-
CI: true
7+
build:
8+
name: Build zip file
9+
concurrency:
10+
group: production - ${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- uses: actions/setup-node@v6
17+
with:
18+
node-version: lts/*
19+
cache: 'npm'
20+
21+
- run: npm ci --prefer-offline --no-audit --no-fund
22+
23+
- name: Build
24+
run: npm run build
25+
env:
26+
CI: true
2127

22-
- name: Package
23-
uses: actions/upload-artifact@v4
24-
with:
25-
name: pattern-css
26-
retention-days: 5
27-
path: |
28-
${{ github.workspace }}/
29-
!${{ github.workspace }}/node_modules/
30-
!${{ github.workspace }}/cypress/
31-
!${{ github.workspace }}/.git/
32-
!${{ github.workspace }}/.github/
33-
!${{ github.workspace }}/.wordpress-org/
34-
!${{ github.workspace }}/package-lock.json
28+
- name: Package
29+
uses: actions/upload-artifact@v6
30+
with:
31+
name: pattern-css
32+
retention-days: 5
33+
path: |
34+
${{ github.workspace }}/
35+
!${{ github.workspace }}/node_modules/
36+
!${{ github.workspace }}/tests/
37+
!${{ github.workspace }}/.git/
38+
!${{ github.workspace }}/.github/
39+
!${{ github.workspace }}/.wordpress-org/
40+
!${{ github.workspace }}/playwright-report/
41+
!${{ github.workspace }}/test-results/
42+
!${{ github.workspace }}/package-lock.json

.github/workflows/cypress-main.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/cypress-push.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Playwright Tests (WP Nightly)
2+
permissions:
3+
contents: write
4+
on:
5+
push:
6+
branches: main
7+
schedule:
8+
- cron: '0 8 * * *'
9+
10+
jobs:
11+
playwright:
12+
timeout-minutes: 60
13+
name: Run Playwright tests (WP nightly)
14+
concurrency:
15+
group: ${{ github.workflow }} - ${{ github.ref }}
16+
cancel-in-progress: true
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v6
21+
22+
- uses: actions/setup-node@v6
23+
with:
24+
node-version: lts/*
25+
cache: 'npm'
26+
27+
- run: npm ci --prefer-offline --no-audit --no-fund
28+
29+
- name: Install Playwright Browsers
30+
run: npx playwright install --with-deps
31+
32+
- name: Build project
33+
run: npm run build
34+
env:
35+
CI: true
36+
37+
- name: Run Playwright tests
38+
run: npx playwright test
39+
env:
40+
WP_VERSION: nightly
41+
42+
- uses: actions/upload-artifact@v6
43+
if: ${{ !cancelled() }}
44+
with:
45+
name: playwright-report-nightly
46+
path: playwright-report/
47+
retention-days: 30

.github/workflows/playwright.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Playwright Tests
2+
permissions:
3+
contents: write
4+
on:
5+
pull_request:
6+
push:
7+
branches: main
8+
9+
jobs:
10+
playwright:
11+
timeout-minutes: 60
12+
name: Run Playwright tests
13+
concurrency:
14+
group: ${{ github.workflow }} - ${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v6
20+
21+
- uses: actions/setup-node@v6
22+
with:
23+
node-version: lts/*
24+
cache: 'npm'
25+
26+
- run: npm ci --prefer-offline --no-audit --no-fund
27+
28+
- name: Install Playwright Browsers
29+
run: npx playwright install --with-deps
30+
31+
- name: Build project
32+
run: npm run build
33+
env:
34+
CI: true
35+
36+
- name: Run Playwright tests
37+
run: npx playwright test
38+
39+
- uses: actions/upload-artifact@v6
40+
if: ${{ !cancelled() }}
41+
with:
42+
name: playwright-report
43+
path: playwright-report/
44+
retention-days: 30

0 commit comments

Comments
 (0)