Skip to content

Commit

Permalink
add build-essentials and curl to docker executors and run ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed Aug 31, 2023
1 parent 3509f11 commit 60dbde9
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .circleci/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ windowsWorkflowFilters: &windows-workflow-filters

executors:
# the Docker image with Cypress dependencies and Chrome browser
cy-doc:
cy-doc: &cy-doc
docker:
- image: cypress/browsers:node-18.15.0-chrome-106.0.5249.61-1-ff-99.0.1-edge-114.0.1823.51-1
# by default, we use "medium" to balance performance + CI costs. bump or reduce on a per-job basis if needed.
Expand Down Expand Up @@ -631,6 +631,7 @@ commands:
steps:
- restore_cached_workspace
- restore_cached_system_tests_deps
- install-needed-docker-deps
- when:
condition:
equal: [ webkit, << parameters.browser >> ]
Expand Down Expand Up @@ -1253,6 +1254,19 @@ commands:
command: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
install-needed-docker-deps:
description: makes sure build-essentials are present, as well as curl, in docker jobs
parameters:
executor:
type: executor
default: cy-doc
steps:
- when:
condition:
equal: [ *cy-doc, << parameters.executor >> ]
steps:
- run: apt-get -y update; apt-get -y install curl; apt-get -y install build-essential

jobs:
## Checks if we already have a valid cache for the node_modules_install and if it has,
Expand All @@ -1267,6 +1281,8 @@ jobs:
resource_class: << parameters.resource_class >>
steps:
- checkout
- install-needed-docker-deps:
executor: << parameters.executor >>
- install-required-node
- verify-build-setup:
executor: << parameters.executor >>
Expand Down Expand Up @@ -1574,6 +1590,7 @@ jobs:
parallelism: 1
steps:
- restore_cached_workspace
- install-needed-docker-deps
- run: yarn test-unit --scope @packages/server
- verify-mocha-results:
expectedResultCount: 1
Expand Down Expand Up @@ -1610,6 +1627,7 @@ jobs:
parallelism: 1
steps:
- restore_cached_workspace
- install-needed-docker-deps
- run: yarn test-integration --scope @packages/server
- verify-mocha-results:
expectedResultCount: 1
Expand All @@ -1621,6 +1639,7 @@ jobs:
<<: *defaults
steps:
- restore_cached_workspace
- install-needed-docker-deps
- run:
command: yarn workspace @packages/server test-performance
- verify-mocha-results:
Expand Down Expand Up @@ -1683,6 +1702,7 @@ jobs:
<<: *defaults
steps:
- restore_cached_workspace
- install-needed-docker-deps
- run:
environment:
CYPRESS_COMMERCIAL_RECOMMENDATIONS: '0'
Expand Down Expand Up @@ -2093,6 +2113,7 @@ jobs:
resource_class: << parameters.resource_class >>
steps:
- restore_cached_workspace
- install-needed-docker-deps
- check-if-binary-exists
- setup_should_persist_artifacts
- build-binary
Expand Down

0 comments on commit 60dbde9

Please sign in to comment.