Skip to content

Commit 699daaf

Browse files
committed
Update CI jobs to use new diff:not-generated script.
1 parent 7768dc6 commit 699daaf

14 files changed

+16
-15
lines changed

.github/workflows/reusable-coding-standards-javascript.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ jobs:
5858
run: npm run grunt jshint
5959

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

.github/workflows/reusable-coding-standards-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ jobs:
105105
run: phpcbf
106106

107107
- name: Ensure version-controlled files are not modified during the tests
108-
run: git diff --exit-code
108+
run: npm run diff:non-generated

.github/workflows/reusable-end-to-end-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ jobs:
154154
include-hidden-files: true
155155

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

.github/workflows/reusable-javascript-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ jobs:
6868
run: npm run grunt qunit:compiled
6969

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

.github/workflows/reusable-performance-test-v2.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,5 @@ jobs:
267267
include-hidden-files: true
268268

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

.github/workflows/reusable-performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,4 @@ jobs:
357357
node ./tests/performance/log-results.js "$CODEVITALS_PROJECT_TOKEN" trunk "$GITHUB_SHA" "$BASE_SHA" "$COMMITTED_AT" "$HOST_NAME"
358358
359359
- name: Ensure version-controlled files are not modified or deleted
360-
run: git diff --exit-code
360+
run: npm run diff:non-generated

.github/workflows/reusable-php-compatibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ jobs:
8787
run: cs2pr ./.cache/phpcs-compat-report.xml
8888

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

.github/workflows/reusable-phpstan-static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ jobs:
106106
key: "phpstan-result-cache-${{ github.run_id }}"
107107

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

.github/workflows/reusable-phpunit-tests-v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,4 @@ jobs:
209209
run: LOCAL_PHP_XDEBUG=true npm run "test:${PHPUNIT_SCRIPT}" -- -v --group xdebug --exclude-group __fakegroup__
210210

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

.github/workflows/reusable-phpunit-tests-v3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ jobs:
253253
overwrite: true
254254

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

258258
- name: Checkout the WordPress Test Reporter
259259
if: ${{ github.ref == 'refs/heads/trunk' && inputs.report }}

0 commit comments

Comments
 (0)