From 50127b740806cde49a277d1af10e33c2d272b068 Mon Sep 17 00:00:00 2001 From: Khokan Sardar Date: Sat, 29 Aug 2026 21:05:37 +0530 Subject: [PATCH] Build/Test Tools: Allow the CSS precommit task to be skipped. The `precommit:css` step added in [63315] runs Autoprefixer against whichever branch is checked out. In the 5.2 through 5.7 branches, that task has not been run since the browser usage database was last updated, so it rewrites tracked CSS files and the `git diff --exit-code` step that follows the build fails. Those branches call this reusable workflow at `@trunk`, so add a `test-css` input mirroring the existing `test-emoji` one, allowing each branch to opt out of the task. See #65993. --- .github/workflows/reusable-test-core-build-process.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-test-core-build-process.yml b/.github/workflows/reusable-test-core-build-process.yml index 1a41257418dec..fb9d1f3f3e6ae 100644 --- a/.github/workflows/reusable-test-core-build-process.yml +++ b/.github/workflows/reusable-test-core-build-process.yml @@ -21,6 +21,11 @@ on: required: false type: 'boolean' default: true + test-css: + description: 'Whether to run the precommit:css Grunt script.' + required: false + type: 'boolean' + default: true test-certificates: description: 'Whether to run the certificate related Grunt scripts.' required: false @@ -113,7 +118,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run CSS precommit tasks - if: ${{ inputs.directory == 'src' }} + if: ${{ inputs.test-css && inputs.directory == 'src' }} run: npm run grunt precommit:css - name: Ensure certificates files are updated