Sha256: 66a4bacfeb692047ba909aaf50fb97f01477120ec10d71244a4675c0f0f65cf5

Contents?: true

Size: 1.93 KB

Versions: 4

Compression:

Stored size: 1.93 KB

Contents

version: 2.1

orbs:
  browser-tools: circleci/browser-tools@1.1

  # Always take the latest version of the orb, this allows us to
  # run specs against Solidus supported versions only without the need
  # to change this configuration every time a Solidus version is released
  # or goes EOL.
  solidusio_extensions: solidusio/extensions@volatile

commands:
  test-with-starter-frontend:
    steps:
      - checkout
      - browser-tools/install-chrome
      - run:
          name: Install libvips
          command: |
            sudo apt-get update
            sudo apt-get install -yq libvips-dev
      - solidusio_extensions/test-branch:
          branch: main
          command: |
            export FRONTEND=starter
            sudo gem update --system
            gem install bundler rails
            bin/dummy-app
            bin/rspec
      - solidusio_extensions/store-test-results

jobs:
  run-specs-with-postgres:
    executor:
      name: solidusio_extensions/postgres
      ruby_version: '3.2'
    steps:
      - test-with-starter-frontend

  run-specs-with-mysql:
    executor:
      name: solidusio_extensions/mysql
      ruby_version: '3.1'
    steps:
      - test-with-starter-frontend

  run-specs-with-sqlite:
    executor:
      name: solidusio_extensions/sqlite
      ruby_version: '3.0'
    steps:
      - test-with-starter-frontend

  lint-code:
    executor:
      name: solidusio_extensions/sqlite-memory
      ruby_version: '3.0'
    steps:
      - solidusio_extensions/lint-code

workflows:
  "Run specs on supported Solidus versions":
    jobs:
      - run-specs-with-postgres
      - run-specs-with-mysql
      - run-specs-with-sqlite
      - lint-code

  "Weekly run specs against main":
    triggers:
      - schedule:
          cron: "0 0 * * 4" # every Thursday
          filters:
            branches:
              only:
                - main
    jobs:
      - run-specs-with-postgres
      - run-specs-with-mysql
      - run-specs-with-sqlite

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
solidus_braintree-3.2.0 .circleci/config.yml
solidus_paypal_commerce_platform-1.0.3 .circleci/config.yml
solidus_braintree-3.1.0 .circleci/config.yml
solidus_paypal_commerce_platform-1.0.2 .circleci/config.yml