Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Create new extensions with brakeman by default

Damian Legawiec1291b3d6a8b0
diff --git a/cli/lib/spree_cli/templates/extension/.circleci/config.yml b/cli/lib/spree_cli/templates/extension/.circleci/config.yml
index f0c4614ed2..65b1746979 100644
--- a/cli/lib/spree_cli/templates/extension/.circleci/config.yml
+++ b/cli/lib/spree_cli/templates/extension/.circleci/config.yml
@@ -102,6 +102,31 @@ jobs:
- image: *ruby_image
- image: &mysql_image cimg/mysql:8.0
+ brakeman:
+ <<: *defaults
+ steps:
+ - checkout
+ - restore_cache:
+ keys:
+ - spree-bundle-{{ .Branch }}
+ - spree-bundle
+ - run:
+ name: Add keyserver
+ command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
+ - run:
+ name: Install libvips
+ command: sudo apt-get update && sudo apt-get install libvips
+ - run:
+ name: Set bundle path
+ command: bundle config --local path vendor/bundle
+ - run:
+ name: Ensure bundle Install
+ command: |
+ bundle check || bundle install
+ - run:
+ name: Brakeman
+ command: bundle exec brakeman --exit-on-warn --exit-on-error
+
workflows:
version: 2
main:
@@ -113,3 +138,6 @@ workflows:
- tests_mysql:
requires:
- bundle
+ - brakeman:
+ requires:
+ - bundle