Build/Test Tools: Test building WordPress to run from src first.

Because of the scripts that run when `build:dev` is run, it’s more common for this Grunt task to change version-controlled files than when building WordPress to run from `build`.

This moves the `build:dev` tests before the `build` ones in order to detect changes earlier in the workflow.

See #55652.

git-svn-id: https://develop.svn.wordpress.org/trunk@54297 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers
2022-09-23 20:03:00 +00:00
parent c3b98011b2
commit c617ec0341
+18 -18
View File
@@ -81,15 +81,6 @@ jobs:
- name: Install Dependencies
run: npm ci
- name: Build WordPress
run: npm run build
- name: Clean after building
run: npm run grunt clean
- name: Ensure version-controlled files are not modified or deleted during building and cleaning
run: git diff --exit-code
- name: Build WordPress in /src
run: npm run build:dev
@@ -99,6 +90,15 @@ jobs:
- name: Ensure version-controlled files are not modified or deleted during building and cleaning
run: git diff --exit-code
- name: Build WordPress
run: npm run build
- name: Clean after building
run: npm run grunt clean
- name: Ensure version-controlled files are not modified or deleted during building and cleaning
run: git diff --exit-code
# Verifies that installing NPM dependencies and building WordPress works as expected on MacOS.
#
# This is separate from the job above in order to use stricter conditions about when to run.
@@ -141,15 +141,6 @@ jobs:
- name: Install Dependencies
run: npm ci
- name: Build WordPress
run: npm run build
- name: Clean after building
run: npm run grunt clean
- name: Ensure version-controlled files are not modified or deleted during building and cleaning
run: git diff --exit-code
- name: Build WordPress in /src
run: npm run build:dev
@@ -159,6 +150,15 @@ jobs:
- name: Ensure version-controlled files are not modified or deleted during building and cleaning
run: git diff --exit-code
- name: Build WordPress
run: npm run build
- name: Clean after building
run: npm run grunt clean
- name: Ensure version-controlled files are not modified or deleted during building and cleaning
run: git diff --exit-code
slack-notifications:
name: Slack Notifications
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk