From 150909d4b9ef8e8399842b5e4ea21e05c41fe85d Mon Sep 17 00:00:00 2001 From: John Hill Date: Fri, 25 Mar 2022 11:11:41 -0700 Subject: [PATCH] [Build] Remove testing and support for node12 (#4963) * Remove all node12 testing other than platform * add lighthouse to our deps now that 12 is deprecated * removing 12 from platform pr * Updated config.yml Co-authored-by: unlikelyzero Co-authored-by: Shefali Joshi --- .circleci/config.yml | 17 +++++------------ .github/workflows/lighthouse.yml | 14 ++++++-------- .github/workflows/pr-platform.yml | 1 - package.json | 3 ++- 4 files changed, 13 insertions(+), 22 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index abfefb6424..7f8a4d1cfe 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 executors: pw-focal-development: docker: - - image: mcr.microsoft.com/playwright:v1.19.1-focal + - image: mcr.microsoft.com/playwright:v1.19.2-focal environment: NODE_ENV: development # Needed to ensure 'dist' folder created and devDependencies installed parameters: @@ -101,7 +101,7 @@ jobs: equal: [ "FirefoxESR", <> ] steps: - browser-tools/install-firefox: - version: "91.4.0esr" #https://archive.mozilla.org/pub/firefox/releases/ + version: "91.7.1esr" #https://archive.mozilla.org/pub/firefox/releases/ - when: condition: equal: [ "FirefoxHeadless", <> ] @@ -142,11 +142,8 @@ workflows: overall-circleci-commit-status: #These jobs run on every commit jobs: - lint: + name: node16-lint node-version: lts/gallium - - unit-test: - name: node12-chrome - node-version: lts/erbium - browser: ChromeHeadless - unit-test: name: node14-chrome node-version: lts/fermium @@ -164,13 +161,9 @@ workflows: the-nightly: #These jobs do not run on PRs, but against master at night jobs: - unit-test: - name: node12-firefoxESR-nightly - node-version: lts/erbium + name: node16-firefoxESR-nightly + node-version: lts/gallium browser: FirefoxESR - - unit-test: - name: node12-chrome-nightly - node-version: lts/erbium - browser: ChromeHeadless - unit-test: name: node14-firefox-nightly node-version: lts/fermium diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index f7ff34b733..a2df653447 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -9,8 +9,6 @@ on: pull_request: types: - labeled - schedule: - - cron: '28 21 * * 1-5' jobs: lighthouse-pr: if: ${{ github.event.label.name == 'pr:lighthouse' }} @@ -20,10 +18,10 @@ jobs: uses: actions/checkout@v3 with: ref: master #explicitly checkout master for baseline - - name: Install Node 14 + - name: Install Node 16 uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '16' - name: Cache node modules uses: actions/cache@v2 env: @@ -54,10 +52,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Install Node 14 + - name: Install Node 16 uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '16' - name: Cache node modules uses: actions/cache@v2 env: @@ -83,9 +81,9 @@ jobs: - name: Install Node 14 uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '16' - name: Cache node modules - uses: actions/cache@v2 + uses: actions/cache@v3 env: cache-name: cache-node-modules with: diff --git a/.github/workflows/pr-platform.yml b/.github/workflows/pr-platform.yml index e7c6fec4ff..2f9e4595e5 100644 --- a/.github/workflows/pr-platform.yml +++ b/.github/workflows/pr-platform.yml @@ -16,7 +16,6 @@ jobs: - macos-latest - windows-latest node_version: - - 12 - 14 - 16 architecture: diff --git a/package.json b/package.json index de499bd582..65fead758d 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "karma-sourcemap-loader": "0.3.8", "karma-spec-reporter": "0.0.33", "karma-webpack": "5.0.0", + "lighthouse": "9.5.0", "location-bar": "3.0.1", "lodash": "4.17.12", "mini-css-extract-plugin": "2.4.5", @@ -106,7 +107,7 @@ "url": "https://github.com/nasa/openmct.git" }, "engines": { - "node": ">=12.22.0" + "node": ">=14.19.1" }, "browserslist": [ "Firefox ESR",