Sha256: 75b0aea927f8bf52e88e46769d5999ddbb98f6f18cefa29fc95d81ea7746bf75

Contents?: true

Size: 1.92 KB

Versions: 1

Compression:

Stored size: 1.92 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:'~>7.2'
            bundle exec rake
      - 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.1"
    steps:
      - test-with-starter-frontend

  lint-code:
    executor:
      name: solidusio_extensions/sqlite-memory
      ruby_version: "3.1"
    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

1 entries across 1 versions & 1 rubygems

Version Path
solidus_braintree-3.3.0 .circleci/config.yml