site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

Consolidate JS linting and JS tests workflows into one

Open aaemnnosttv opened this issue 5 years ago • 5 comments

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.yml and js-css-lint.yml workflows 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
  • paths should 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.yml and js-css-lint.yml have 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

aaemnnosttv avatar Apr 16 '21 15:04 aaemnnosttv

@tofumatt anything you want to add/change here?

aaemnnosttv avatar Apr 16 '21 15:04 aaemnnosttv

Nothing to add, that looks exactly right 👍🏻

tofumatt avatar Apr 27 '21 10:04 tofumatt

IB ✅

The basics of the issue are covered by the IB, I'll move it into Code Review now given the IB. 🙂

tofumatt avatar May 11 '21 15:05 tofumatt

(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 🙂 )

tofumatt avatar May 12 '21 14:05 tofumatt

QA ✅ New job seems to be running well

johnPhillips avatar May 27 '21 13:05 johnPhillips