Skip to content

Commit

Permalink
add resource class to default executor (#152)
Browse files Browse the repository at this point in the history
* Add resource class to executor

* fix

* Fix typo
  • Loading branch information
marboledacci authored Oct 22, 2024
1 parent 3a11bf1 commit 93b5b48
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ executors:
image: << parameters.image >>

jobs:
install-deps:
parameters:
executor:
type: executor
default: ruby/default
executor: <<parameters.executor>>
steps:
- checkout
- ruby/install-deps:
app-dir: sample
with-cache: false
test-openssl-installed:
docker:
- image: cimg/node:16.18.0
Expand Down Expand Up @@ -166,6 +177,18 @@ workflows:
test-deploy:
jobs:
# Make sure to include "filters: *filters" in every test job you want to run as part of your deployment.
- install-deps:
name: install-deps-medium
executor:
name: ruby/default
resource_class: medium
filters: *filters
- install-deps:
name: install-deps-large
executor:
name: ruby/default
resource_class: large
filters: *filters
- integration-tests:
filters: *filters
- test-openssl-installed:
Expand Down
6 changes: 6 additions & 0 deletions src/executors/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@ parameters:
description: "The `cimg/ruby` Docker image version tag."
type: string
default: "2.7"
resource_class:
description: The resources_class of the instance to run on. Defaults to Medium.
type: string
default: "medium"

docker:
- image: cimg/ruby:<< parameters.tag >>
resource_class: << parameters.resource_class >>

0 comments on commit 93b5b48

Please sign in to comment.