This pull request aims to introduce the capability to execute NPM install and NPM scripts during the testing process, addressing the need specified in issue #86. This change would allow projects to build appropriately before testing, ensuring that all necessary files are present in the /build directory for a successful test run.
Fixes #86
Background
Currently, some projects like wp-conditional-blocks face challenges during the testing phase due to the build process only copying PHP files to the /build directory. Without this change, testing cannot accurately reflect the project's state, leading to potential failures.
Implementation
The proposed solution involves modifying the testing workflow to include steps for running npm install followed by relevant NPM scripts. This ensures that all necessary build processes are completed before testing commences.
Testing
To verify the effectiveness of this change, projects that previously failed in the testing phase due to build issues will be retested. Success is defined by the ability to execute tests without encountering errors related to missing files in the /build directory.
Additional Notes
This change is crucial for improving the reliability of our testing process and ensuring that all projects can be accurately tested before deployment.
Summary
This pull request aims to introduce the capability to execute NPM install and NPM scripts during the testing process, addressing the need specified in issue #86. This change would allow projects to build appropriately before testing, ensuring that all necessary files are present in the
/build
directory for a successful test run.Fixes #86
Background
Currently, some projects like wp-conditional-blocks face challenges during the testing phase due to the build process only copying PHP files to the
/build
directory. Without this change, testing cannot accurately reflect the project's state, leading to potential failures.Implementation
The proposed solution involves modifying the testing workflow to include steps for running
npm install
followed by relevant NPM scripts. This ensures that all necessary build processes are completed before testing commences.Testing
To verify the effectiveness of this change, projects that previously failed in the testing phase due to build issues will be retested. Success is defined by the ability to execute tests without encountering errors related to missing files in the
/build
directory.Additional Notes
This change is crucial for improving the reliability of our testing process and ensuring that all projects can be accurately tested before deployment.
For more details, see the original issue at https://github.com/alleyinteractive/.github/issues/86.