Skip to content

Commit b123f2d

Browse files
authored
Merge pull request #422 from KevinBatdorf/update/modernize-tooling
2 parents f532322 + 3a9f415 commit b123f2d

146 files changed

Lines changed: 37132 additions & 38847 deletions

File tree

Some content is hidden

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

.distignore

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
/.git
33
/.github
44
/.gitignore
5+
/.vscode
56
/node_modules
67
/assets
78
/scripts
8-
/package-lock.json
9+
/tests
910
/target
10-
/cypress
11+
/test-results
12+
/playwright-report
13+
/package-lock.json
14+
/playwright.config.ts
15+
/biome.json
16+
/.claude
17+
/tsconfig.json

.editorconfig

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

.github/workflows/build-production-zip.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,28 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
15+
- uses: actions/setup-node@v6
16+
with:
17+
node-version: lts/*
18+
cache: 'npm'
1519
- name: npm install and build
1620
run: |
1721
npm ci
18-
npx eslint --max-warnings 0 .
22+
npx biome check .
1923
npm run build
2024
env:
2125
CI: true
2226

2327
- name: Package
24-
uses: actions/upload-artifact@v4
28+
uses: actions/upload-artifact@v6
2529
with:
2630
name: code-block-pro
2731
retention-days: 5
2832
path: |
2933
${{ github.workspace }}/
3034
!${{ github.workspace }}/node_modules/
31-
!${{ github.workspace }}/cypress/
35+
!${{ github.workspace }}/tests/
3236
!${{ github.workspace }}/target/
3337
!${{ github.workspace }}/scripts/
3438
!${{ github.workspace }}/.git/

.github/workflows/cypress-main.yml

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

.github/workflows/cypress-push.yml

Lines changed: 0 additions & 92 deletions
This file was deleted.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
discover:
12+
name: Discover test suites
13+
runs-on: ubuntu-latest
14+
outputs:
15+
suites: ${{ steps.find.outputs.suites }}
16+
steps:
17+
- uses: actions/checkout@v6
18+
- id: find
19+
run: |
20+
suites=$(find . -name '*.spec.ts' -not -path '*/node_modules/*' | while read spec; do
21+
dir=$(dirname "$spec")
22+
if [ -f "$dir/blueprint.json" ]; then
23+
basename "$spec" .spec.ts
24+
fi
25+
done | jq -R -s -c 'split("\n") | map(select(length > 0))')
26+
echo "suites=$suites" >> "$GITHUB_OUTPUT"
27+
28+
test:
29+
name: ${{ matrix.suite }}
30+
needs: discover
31+
concurrency:
32+
group: ${{ github.workflow }} - ${{ matrix.suite }} - ${{ github.ref }}
33+
cancel-in-progress: true
34+
runs-on: ubuntu-latest
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
suite: ${{ fromJson(needs.discover.outputs.suites) }}
39+
40+
steps:
41+
- uses: actions/checkout@v6
42+
43+
- uses: actions/setup-node@v6
44+
with:
45+
node-version: lts/*
46+
cache: 'npm'
47+
48+
- run: npm ci --prefer-offline --no-audit --no-fund
49+
50+
- name: Install Playwright Browsers
51+
run: npx playwright install --with-deps
52+
53+
- name: Build project
54+
run: npm run build
55+
env:
56+
CI: true
57+
58+
- name: Run Playwright tests
59+
run: RUN_PROJECT="${{ matrix.suite }}" npx playwright test --project="${{ matrix.suite }}"
60+
env:
61+
WP_VERSION: nightly
62+
63+
- name: Set artifact name
64+
if: ${{ !cancelled() }}
65+
id: artifact
66+
run: echo "name=pw-nightly-${{ matrix.suite }}" >> "$GITHUB_OUTPUT"
67+
68+
- uses: actions/upload-artifact@v6
69+
if: ${{ !cancelled() }}
70+
with:
71+
name: ${{ steps.artifact.outputs.name }}
72+
path: playwright-report/
73+
retention-days: 30

0 commit comments

Comments
 (0)