From 4fdddb7c23b8ded94500f31b851edb00ca63f967 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Thu, 19 Dec 2024 10:43:57 +0100 Subject: [PATCH] CI: Skip all frontend specs The Solidus dummy app installs the starter frontend which copies all frontend specs and runs them with this extensions specs. These specs are unrelated and wastes unnecessary resources. --- .circleci/config.yml | 6 ++++++ bin/dummy-app | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3fdaa2d..f9a578a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,6 +30,8 @@ commands: jobs: run-specs-with-postgres: + environment: + FRONTEND_SPECS: none executor: name: solidusio_extensions/postgres ruby_version: "3.2" @@ -37,6 +39,8 @@ jobs: - test-with-starter-frontend run-specs-with-mysql: + environment: + FRONTEND_SPECS: none executor: name: solidusio_extensions/mysql ruby_version: "3.1" @@ -44,6 +48,8 @@ jobs: - test-with-starter-frontend run-specs-with-sqlite: + environment: + FRONTEND_SPECS: none executor: name: solidusio_extensions/sqlite ruby_version: "3.1" diff --git a/bin/dummy-app b/bin/dummy-app index d19af00..404139e 100755 --- a/bin/dummy-app +++ b/bin/dummy-app @@ -29,7 +29,7 @@ if [ ! -d "dummy-app" ]; then fi cd ./dummy-app -unbundled bundle add solidus --github solidusio/solidus --branch "${BRANCH:-main}" --version '> 0.a' +unbundled bundle add solidus --github tvdeyen/solidus --branch "install-generator-skip-frontend-specs" --version '> 0.a' unbundled bundle exec rake db:drop db:create unbundled bundle exec rails generate solidus:install --auto-accept --payment-method=none --no-seed --no-sample "$@" unbundled bundle add $extension_name --path ..