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
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"selfsigned",
"portfinder",
"xlink",
"WATCHPACK",
"instanceof",
"Heyo",
"domcontentloaded",
Expand Down
35 changes: 32 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,12 @@ jobs:
run: npm run validate:changeset

test:
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version == '24.15' && '24.x' || matrix.node-version }}, Webpack ${{ matrix.webpack-version }} (${{ matrix.shard }})
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }} (${{ matrix.shard }})

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# 24.15 is pinned on purpose: Node 24.16 is broken for Puppeteer. Do not bump to 24.x.
node-version: [22.x, 24.15, 25.x]
node-version: [22.x, 24.x, 25.x, 26.x]
shard: ["1/4", "2/4", "3/4", "4/4"]
webpack-version: [latest]

Expand All @@ -93,6 +92,12 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Install Chrome for Puppeteer
run: npx puppeteer browsers install chrome

- name: Setup firefox
if: matrix.os != 'windows-latest'
uses: browser-actions/setup-firefox@0bc507ddf224827e3b1af68e014d5e42ab93e795 # v1.7.2
Expand All @@ -110,7 +115,31 @@ jobs:
- name: Run tests for webpack version ${{ matrix.webpack-version }}
run: npm run test:coverage -- --test-shard=${{ matrix.shard }}

- name: Upload coverage artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: coverage-${{ matrix.os }}-${{ matrix.node-version }}-${{ strategy.job-index }}
path: coverage/lcov.info
if-no-files-found: error

upload-coverage:
name: Upload coverage to codecov

needs: test

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Download coverage artifacts
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
pattern: coverage-*
path: coverage

- name: Submit coverage data to codecov
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: coverage
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:

- run: npm ci

- name: Build
run: npm run build

- name: Check client build exists
run: if [ ! -f client/index.js ]; then echo "Missing client build. 'npm run build' did not generate client/index.js"; exit 1; fi

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-scripts=true
Loading
Loading