From 4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Thu, 27 Feb 2020 22:55:25 -0500 Subject: [PATCH] cli: downgrade chalk (#6569) * cli: downgrade chalk * add job to test NPM on minimum Node version * forgot to attach workspace * try updating npm * try installing npm 5.0.4 * try npm 5.1.0 * skip npm init, just install Cypress * try using Yarn * run additional Cypress commands * print Cypress version * print Cypress version * hmm, try different user * yarn-lock * back to npm * print npm version Co-authored-by: Jennifer Shehane --- circle.yml | 38 ++++++++++++++++++++++++++++++++++++++ cli/package.json | 2 +- yarn.lock | 2 +- 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index de242a264e91..6043cbe79c3f 100644 --- a/circle.yml +++ b/circle.yml @@ -938,6 +938,40 @@ jobs: command: $(yarn bin)/cypress info - store-npm-logs + test-npm-module-on-minimum-node-version: + <<: *defaults + docker: + - image: cypress/base:8.0.0 + steps: + - attach_workspace: + at: ~/ + # make sure we have cypress.zip received + - run: ls -l + - run: ls -l cypress.zip cypress.tgz + - run: mkdir test-binary + - run: node --version + - run: npm --version + - run: + name: Create new NPM package + working_directory: test-binary + command: npm init -y + - run: + name: Install Cypress + working_directory: test-binary + command: CYPRESS_INSTALL_BINARY=/root/cypress/cypress.zip npm install /root/cypress/cypress.tgz + - run: + name: Verify Cypress binary + working_directory: test-binary + command: $(npm bin)/cypress verify + - run: + name: Print Cypress version + working_directory: test-binary + command: $(npm bin)/cypress version + - run: + name: Cypress info + working_directory: test-binary + command: $(npm bin)/cypress info + # install NPM + binary zip and run against staging API "test-binary-against-staging": <<: *defaults @@ -1247,6 +1281,10 @@ linux-workflow: &linux-workflow - develop requires: - build-binary + - test-npm-module-on-minimum-node-version: + requires: + - build-binary + - build-npm-package - post-pre-release-install-comment: context: test-runner:commit-status-checks filters: diff --git a/cli/package.json b/cli/package.json index 033d9ef127e2..21e159d6b55b 100644 --- a/cli/package.json +++ b/cli/package.json @@ -26,7 +26,7 @@ "arch": "2.1.1", "bluebird": "3.7.2", "cachedir": "2.3.0", - "chalk": "3.0.0", + "chalk": "2.4.2", "check-more-types": "2.24.0", "commander": "4.1.0", "common-tags": "1.8.0", diff --git a/yarn.lock b/yarn.lock index fc5477825f88..cca155cec3f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8020,7 +8020,7 @@ chai@4.2.0, chai@^4.1.2: pathval "^1.1.0" type-detect "^4.0.5" -chalk@*, chalk@3.0.0: +chalk@*: version "3.0.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==