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
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Set the default behavior, in case people don't have `core.autocrlf` set.
* text=auto
* text=auto eol=lf

# Windows bat files in mobile/android.
*.bat -text
Expand Down
23 changes: 18 additions & 5 deletions .github/workflows/static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,26 @@ permissions: {}

jobs:
check:
name: All
runs-on: 'ubuntu-24.04'
name: All${{ (matrix.node != '20' || matrix.os != 'ubuntu-24.04') && format(' (Node.js {0} on {1})', matrix.node, contains(matrix.os, 'macos-') && 'MacOS' || contains(matrix.os, 'windows-') && 'Windows' || 'Linux') || '' }}
runs-on: ${{ matrix.os }}
permissions:
contents: read
if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }}
strategy:
matrix:
event: ['${{ github.event_name }}']
node: ['20', '22', '24']
os: ['macos-15', 'ubuntu-24.04', 'windows-2025']
exclude:
# On PRs: Only test Node 20 on Ubuntu
- event: 'pull_request'
node: '22'
- event: 'pull_request'
node: '24'
- event: 'pull_request'
os: 'macos-15'
- event: 'pull_request'
os: 'windows-2025'

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand All @@ -36,9 +51,7 @@ jobs:
- name: Use desired version of Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version-file: '.nvmrc'
check-latest: true
cache: npm
node-version: ${{ matrix.node }}

- name: Npm install
# A "full" install is executed, since `npm ci` does not always exit
Expand Down
6 changes: 3 additions & 3 deletions bin/check-licenses.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* External dependencies
*/
import { spawnSync } from 'node:child_process';
import spawn from 'cross-spawn';

/**
* Internal dependencies
Expand All @@ -25,7 +25,7 @@ const ignored = [ '@ampproject/remapping', 'webpack' ];

/** @type {ReadonlyArray<PackageInfo>} */
const workspacePackages = JSON.parse(
spawnSync(
spawn.sync(
'npm',
[
'query',
Expand All @@ -42,7 +42,7 @@ const workspacePackages = JSON.parse(
const packageNames = workspacePackages.map( ( { name } ) => name );

const dependenciesToProcess = JSON.parse(
spawnSync(
spawn.sync(
'npm',
[
'ls',
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"copy-webpack-plugin": "10.2.0",
"core-js-builder": "3.39.0",
"cross-env": "7.0.3",
"cross-spawn": "^7.0.6",
"css-loader": "6.2.0",
"deep-freeze": "0.0.1",
"equivalent-key-map": "0.2.2",
Expand Down
Loading