Make WordPress Core

Changeset 54297


Ignore:
Timestamp:
09/23/2022 08:03:00 PM (2 years ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/test-npm.yml

    r54293 r54297  
    8282        run: npm ci
    8383
     84      - name: Build WordPress in /src
     85        run: npm run build:dev
     86
     87      - name: Clean after building in /src
     88        run: npm run grunt clean -- --dev
     89
     90      - name: Ensure version-controlled files are not modified or deleted during building and cleaning
     91        run: git diff --exit-code
     92
    8493      - name: Build WordPress
    8594        run: npm run build
     
    8796      - name: Clean after building
    8897        run: npm run grunt clean
    89 
    90       - name: Ensure version-controlled files are not modified or deleted during building and cleaning
    91         run: git diff --exit-code
    92 
    93       - name: Build WordPress in /src
    94         run: npm run build:dev
    95 
    96       - name: Clean after building in /src
    97         run: npm run grunt clean -- --dev
    9898
    9999      - name: Ensure version-controlled files are not modified or deleted during building and cleaning
     
    142142        run: npm ci
    143143
     144      - name: Build WordPress in /src
     145        run: npm run build:dev
     146
     147      - name: Clean after building in /src
     148        run: npm run grunt clean -- --dev
     149
     150      - name: Ensure version-controlled files are not modified or deleted during building and cleaning
     151        run: git diff --exit-code
     152
    144153      - name: Build WordPress
    145154        run: npm run build
     
    147156      - name: Clean after building
    148157        run: npm run grunt clean
    149 
    150       - name: Ensure version-controlled files are not modified or deleted during building and cleaning
    151         run: git diff --exit-code
    152 
    153       - name: Build WordPress in /src
    154         run: npm run build:dev
    155 
    156       - name: Clean after building in /src
    157         run: npm run grunt clean -- --dev
    158158
    159159      - name: Ensure version-controlled files are not modified or deleted during building and cleaning
Note: See TracChangeset for help on using the changeset viewer.