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 ad5ef3e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 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 @@ -1253,6 +1253,19 @@ commands:
command: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
install-needed-docker-deps:
description: makes sure some dependencies needed to install/build the app are present in docker
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 +1280,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 @@ -2093,6 +2108,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 ad5ef3e

Please sign in to comment.