Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Run tests with Ruby 3.1
Rafal Cymerys22289fb033c5
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex f7fc48736e..db34ab4615 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -17,6 +17,12 @@ defaults_3_0: &defaults_3_0<<: *defaultsdocker:- image: &ruby_3_0_image circleci/ruby:3.0-node-browsers+ - image: &redis_image circleci/redis:6.2-alpine++defaults_3_1: &defaults_3_1+ <<: *defaults+ docker:+ - image: &ruby_3_1_image cimg/ruby:3.1.3-browsers- image: *redis_imagerun_tests_2_7: &run_tests_2_7@@ -77,6 +83,35 @@ run_tests_3_0: &run_tests_3_0- store_test_results:path: /tmp/test-results+run_tests_3_1: &run_tests_3_1+ <<: *defaults_3_1+ parallelism: 3+ steps:+ - checkout+ - restore_cache:+ keys:+ - spree-bundle-v10-ruby-3-1-{{ .Branch }}+ - spree-bundle-v10-ruby-3-1+ - run:+ name: Install libvips+ command: sudo apt-get update && sudo apt-get install libvips42+ - run:+ name: Ensure Bundle Install+ command: |+ bundle install+ ./bin/build-ci.rb install+ - run:+ name: Run rspec in parallel+ command: ./bin/build-ci.rb test+ - store_artifacts:+ path: /tmp/test-artifacts+ destination: test-artifacts+ - store_artifacts:+ path: /tmp/test-results+ destination: raw-test-output+ - store_test_results:+ path: /tmp/test-results+jobs:bundle_ruby_2_7:<<: *defaults@@ -100,7 +135,7 @@ jobs:- ~/spree/vendor/bundlebundle_ruby_3_0:- <<: *defaults_3_0+ <<: *defaultssteps:- checkout- restore_cache:@@ -120,8 +155,29 @@ jobs:paths:- ~/spree/vendor/bundle+ bundle_ruby_3_1:+ <<: *defaults_3_1+ steps:+ - checkout+ - restore_cache:+ keys:+ - spree-bundle-v10-ruby-3-1-{{ .Branch }}+ - spree-bundle-v10-ruby-3-1+ - run:+ name: Install libvips+ command: sudo apt-get update && sudo apt-get install libvips42+ - run:+ name: Bundle Install+ command: |+ bundle check || bundle install+ ./bin/build-ci.rb install+ - save_cache:+ key: spree-bundle-v10-ruby-3-1-{{ .Branch }}-{{ checksum "Gemfile.lock" }}+ paths:+ - ~/spree/vendor/bundle+brakeman:- <<: *defaults_3_0+ <<: *defaults_3_1steps:- checkout- restore_cache:@@ -169,6 +225,15 @@ jobs:- image: *postgres_image- image: *redis_image+ tests_ruby_3_1_rails_7_0_postgres:+ <<: *run_tests_3_1+ environment:+ <<: *postgres_environment+ docker:+ - image: *ruby_3_1_image+ - image: *postgres_image+ - image: *redis_image+tests_ruby_2_7_rails_6_1_postgres:<<: *tests_ruby_2_7_rails_7_0_postgresenvironment:@@ -255,9 +320,13 @@ workflows:jobs:- bundle_ruby_2_7- bundle_ruby_3_0+ - bundle_ruby_3_1- brakeman:requires:- - bundle_ruby_3_0+ - bundle_ruby_3_1+ - tests_ruby_3_1_rails_7_0_postgres:+ requires:+ - bundle_ruby_3_1- tests_ruby_3_0_rails_7_0_postgres:requires:- bundle_ruby_3_0