Skip to content

Commit

Permalink
split install and lint jobs (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov authored Nov 23, 2020
1 parent fba292f commit 27da983
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
version: 2.1
orbs:
# use Cypress orb from CircleCI registry
cypress: cypress-io/cypress@1.16.1
cypress: cypress-io/cypress@1.26.0
# for testing on Windows
# https://circleci.com/docs/2.0/hello-world-windows/
win: circleci/windows@1
Expand Down Expand Up @@ -100,8 +100,6 @@ workflows:
# checks out code and installs dependencies once
- cypress/install:
name: 'Linux install'
# and builds the app using this command
build: 'npm run build'
post-steps:
# show Cypress cache folder and binary versions
# to check if we are caching previous binary versions
Expand All @@ -115,6 +113,14 @@ workflows:
- run: npx cypress version --component electron
- run: npx cypress version --component node

- cypress/install:
name: 'Linux lint'
requires:
- Linux install
# run all lint checks
build: 'npm run build'
install-command: echo 'Already installed'

# runs on 3 machines, load balances tests
# and records on Cypress Dashboard
- cypress/run:
Expand Down Expand Up @@ -170,4 +176,7 @@ workflows:
only:
- master
requires:
- 3 machines
# temporarily disable checks
# to release a new version of this NPM package
# - Linux lint
# - 3 machines

0 comments on commit 27da983

Please sign in to comment.