Skip to content

Commit

Permalink
Merge pull request #644 from mkmn/tuning_circleci
Browse files Browse the repository at this point in the history
Tuning CircleCI config
  • Loading branch information
mkmn authored Dec 5, 2024
2 parents e36271e + 6f0a71a commit 5bd465f
Showing 1 changed file with 16 additions and 35 deletions.
51 changes: 16 additions & 35 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
version: 2.1

executors:
working_directory: /root/jpostcode-rb
ruby_3_2:
docker:
- image: cimg/ruby:3.2
ruby_3_1:
docker:
- image: cimg/ruby:3.1
ruby_3_0:
docker:
- image: cimg/ruby:3.0

commands:
install_system_dependencies:
description: "Install system dependencies"
Expand Down Expand Up @@ -48,24 +36,13 @@ commands:
bundle exec rubocop
jobs:
run_tests_on_ruby_3_2:
executor: ruby_3_2
steps:
- install_system_dependencies
- checkout
- submodule_sync
- bundle_gems
- run_tests
run_tests_on_ruby_3_1:
executor: ruby_3_1
steps:
- install_system_dependencies
- checkout
- submodule_sync
- bundle_gems
- run_tests
run_tests_on_ruby_3_0:
executor: ruby_3_0
test:
parameters:
ruby-version:
type: string
docker:
- image: cimg/ruby:<< parameters.ruby-version >>
resource_class: small
steps:
- install_system_dependencies
- checkout
Expand All @@ -74,9 +51,13 @@ jobs:
- run_tests

workflows:
version: 2
test:
all-tests:
jobs:
- run_tests_on_ruby_3_2
- run_tests_on_ruby_3_1
- run_tests_on_ruby_3_0
- test:
matrix:
parameters:
ruby-version:
- "3.0"
- "3.1"
- "3.2"
- "3.3"

0 comments on commit 5bd465f

Please sign in to comment.