From c684c083f561052f40c2357773d8984d4b96a59a Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Fri, 4 Oct 2024 10:40:23 -0700 Subject: [PATCH] Precompile vite in CI As recommended by the Vite Ruby documentation: https://vite-ruby.netlify.app/guide/development.html#hmr-for-integration-tests-%E2%9C%85 --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index b5cc0ce12..16c6722d8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,6 +14,7 @@ executors: ORANGELIGHT_USER: postgres SOLR_URL: http://solr:SolrRocks@localhost:8983/solr/orangelight-core-test COVERALLS_PARALLEL: true + VITE_RUBY_AUTO_BUILD: false - image: cimg/postgres:15.8 environment: POSTGRES_USER: orangelight @@ -80,6 +81,9 @@ jobs: key: orangelight-v3-yarn-{{ checksum "yarn.lock" }} paths: - ~/.cache/yarn + - run: + name: Precompile assets + command: bundle exec rake assets:precompile - persist_to_workspace: root: '~/orangelight' paths: