Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/src/wp-includes/assets/script-loader-packages.php -text binary diff=generated
/src/wp-includes/assets/script-modules-packages.php -text binary diff=generated
/src/wp-includes/assets/script-loader-packages.min.php -text binary diff=generated
/src/wp-includes/assets/script-modules-packages.min.php -text binary diff=generated
/src/wp-includes/icons/** -text binary diff=generated
/src/wp-includes/blocks/*/view.asset.php -text binary diff=generated
/src/wp-includes/blocks/*/view.min.asset.php -text binary diff=generated
2 changes: 1 addition & 1 deletion .github/workflows/reusable-coding-standards-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ jobs:
run: npm run grunt jshint

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code
run: npm run diff:non-generated
2 changes: 1 addition & 1 deletion .github/workflows/reusable-coding-standards-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ jobs:
run: phpcbf

- name: Ensure version-controlled files are not modified during the tests
run: git diff --exit-code
run: npm run diff:non-generated
2 changes: 1 addition & 1 deletion .github/workflows/reusable-end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,4 @@ jobs:
include-hidden-files: true

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code
run: npm run diff:non-generated
2 changes: 1 addition & 1 deletion .github/workflows/reusable-javascript-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ jobs:
run: npm run grunt qunit:compiled

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code
run: npm run diff:non-generated
3 changes: 2 additions & 1 deletion .github/workflows/reusable-performance-test-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,5 @@ jobs:
include-hidden-files: true

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code
run: npm run diff:non-generated

2 changes: 1 addition & 1 deletion .github/workflows/reusable-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,4 @@ jobs:
node ./tests/performance/log-results.js "$CODEVITALS_PROJECT_TOKEN" trunk "$GITHUB_SHA" "$BASE_SHA" "$COMMITTED_AT" "$HOST_NAME"

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code
run: npm run diff:non-generated
2 changes: 1 addition & 1 deletion .github/workflows/reusable-php-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ jobs:
run: cs2pr ./.cache/phpcs-compat-report.xml

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code
run: npm run diff:non-generated
2 changes: 1 addition & 1 deletion .github/workflows/reusable-phpstan-static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ jobs:
key: "phpstan-result-cache-${{ github.run_id }}"

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code
run: npm run diff:non-generated
2 changes: 1 addition & 1 deletion .github/workflows/reusable-phpunit-tests-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,4 @@ jobs:
run: LOCAL_PHP_XDEBUG=true npm run "test:${PHPUNIT_SCRIPT}" -- -v --group xdebug --exclude-group __fakegroup__

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code
run: npm run diff:non-generated
2 changes: 1 addition & 1 deletion .github/workflows/reusable-phpunit-tests-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ jobs:
overwrite: true

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code
run: npm run diff:non-generated

- name: Checkout the WordPress Test Reporter
if: ${{ github.ref == 'refs/heads/trunk' && inputs.report }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-test-core-build-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
run: npm run ${{ inputs.directory == 'src' && 'build:dev' || 'build' }}

- name: Ensure version-controlled files are not modified or deleted during building
run: git diff --exit-code
run: npm run diff:non-generated

- name: Create ZIP of built files
if: ${{ inputs.directory == 'build' && contains( inputs.os, 'ubuntu-' ) }}
Expand All @@ -130,7 +130,7 @@ jobs:
run: npm run grunt ${{ inputs.directory == 'src' && 'clean -- --dev' || 'clean' }}

- name: Ensure version-controlled files are not modified or deleted during cleaning
run: git diff --exit-code
run: npm run diff:non-generated

- name: Upload ZIP as a GitHub Actions artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ jobs:
working-directory: ${{ env.GUTENBERG_DIRECTORY }}

- name: Ensure version-controlled files are not modified or deleted during building
run: git diff --exit-code
run: npm run diff:non-generated
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,4 @@ jobs:
run: npm run env:reset

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code
run: npm run diff:non-generated
2 changes: 1 addition & 1 deletion .github/workflows/test-and-zip-default-themes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
path: src/wp-content/themes/${{ matrix.theme }}/changes.diff

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code
run: npm run diff:non-generated

# Prepares bundled themes for release.
#
Expand Down
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,18 @@ wp-tests-config.php
/src/wp-admin/css/colors/*/*.css
/src/wp-admin/js
/src/wp-includes/assets/*
!/src/wp-includes/assets/script-loader-packages.php
!/src/wp-includes/assets/script-modules-packages.php
!/src/wp-includes/assets/script-loader-packages.min.php
!/src/wp-includes/assets/script-modules-packages.min.php
/src/wp-includes/js
/src/wp-includes/css/dist
/src/wp-includes/css/*.min.css
/src/wp-includes/css/*-rtl.css
/src/wp-includes/blocks/*
!/src/wp-includes/blocks/index.php
/src/wp-includes/icons
/src/wp-includes/blocks/**/*.css
/src/wp-includes/blocks/**/*.js
/src/wp-includes/blocks/**/*.js.map
/src/wp-includes/build
/src/wp-includes/theme.json
/packagehash.txt
/.gutenberg-hash
/artifacts
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
"build": "grunt build",
"build:dev": "grunt build --dev",
"dev": "grunt watch --dev",
"diff:non-generated": "sh ./tools/diff-non-generated.sh",
"test": "grunt test",
"watch": "grunt watch",
"grunt": "grunt",
Expand Down Expand Up @@ -139,4 +140,4 @@
"sync-gutenberg-packages": "grunt sync-gutenberg-packages",
"postsync-gutenberg-packages": "grunt wp-packages:sync-stable-blocks && grunt build --dev && grunt build"
}
}
}
Loading
Loading