Consolidate JS linting and JS tests workflows into one
Feature Description
In #2969 we overhauled our GitHub actions to be much more selective with when each of them runs to be more efficient with build time. This issue is intended to further enhance that by combining JS linting and tests into a single workflow so that JS tests don't run if there is a linting failure.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The current
js-tests.ymlandjs-css-lint.ymlworkflows should be combined into a single workflow - The JS tests should run only after JS linting has passed successfully
- CSS linting should continue to run first as it runs the fastest
pathsshould be updated to combine rules from both as needed
Implementation Brief
- Check PR https://github.com/google/site-kit-wp/pull/3302
- Check that
js-tests.ymlandjs-css-lint.ymlhave been merged together successfully (no paths missing) - Check that workflow is running
Test Coverage
- The same number of tests should be run as before.
Visual Regression Changes
- N/A
QA Brief
- Check that new job is working correctly on GitHub
Changelog entry
- N/A
@tofumatt anything you want to add/change here?
Nothing to add, that looks exactly right 👍🏻
IB ✅
The basics of the issue are covered by the IB, I'll move it into Code Review now given the IB. 🙂
(Note: I'm leaving this assigned to me for Code Review as I have some feedback for the PR and having reviewed the IB think it makes sense, but we'll get to this in a later sprint or at least after everything in Sprint 49 is complete 🙂 )
QA ✅ New job seems to be running well