From 77803582354c7912f2983c0b741cf0044c69a6fe Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Wed, 1 Nov 2023 09:37:50 +0100 Subject: [PATCH] CI: Skip install_solidus check on non-current version The installer always uses the current released minor version (4.2 time writing this), but the check runs on all pipeline runs, wasting CI time and precious resources. Also it fails anyway, because of conflicting dependencies. So, we only run the check on main and latest minor now. --- .circleci/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index facebaabdf0..4ecd24c5298 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -151,6 +151,11 @@ commands: type: string default: "# no options" description: "flags to be passed to `bin/rails g solidus:install" + when: + condition: + or: + - equal: [main, << pipeline.git.branch >>] + - equal: [v4.2, << pipeline.git.branch >>] steps: - run: name: "Cleanup & check rails version"