Skip to content

Commit

Permalink
Update CI configuration
Browse files Browse the repository at this point in the history
Run different Solidus versions on different jobs for better error
handling.

We're now explicitly providing the ruby version to the executor while
using a matrix configuration for better extensibility.
  • Loading branch information
waiting-for-dev committed May 2, 2023
1 parent 640b592 commit 6a99e83
Showing 1 changed file with 36 additions and 12 deletions.
48 changes: 36 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@ orbs:
solidusio_extensions: solidusio/extensions@volatile

jobs:
run-specs-with-postgres:
executor: solidusio_extensions/postgres
run-specs:
parameters:
solidus:
type: string
default: master
db:
type: string
default: "postgres"
ruby:
type: string
default: "3.2"
executor:
name: solidusio_extensions/<< parameters.db >>
ruby_version: << parameters.ruby >>
steps:
- solidusio_extensions/run-tests
run-specs-with-mysql:
executor: solidusio_extensions/mysql
steps:
- solidusio_extensions/run-tests
- checkout
- solidusio_extensions/run-tests-solidus-<< parameters.solidus >>
lint-code:
executor: solidusio_extensions/sqlite-memory
steps:
Expand All @@ -24,9 +33,18 @@ jobs:
workflows:
"Run specs on supported Solidus versions":
jobs:
- run-specs-with-postgres
- run-specs-with-mysql
- lint-code
- run-specs:
name: &name "run-specs-solidus-<< matrix.solidus >>-ruby-<< matrix.ruby >>-db-<< matrix.db >>"
matrix:
parameters: { solidus: ["master"], ruby: ["3.2"], db: ["postgres"] }
- run-specs:
name: *name
matrix:
parameters: { solidus: ["current"], ruby: ["3.1"], db: ["mysql"] }
- run-specs:
name: *name
matrix:
parameters: { solidus: ["older"], ruby: ["3.0"], db: ["sqlite"] }

"Weekly run specs against master":
triggers:
Expand All @@ -37,5 +55,11 @@ workflows:
only:
- master
jobs:
- run-specs-with-postgres
- run-specs-with-mysql
- run-specs:
name: *name
matrix:
parameters: { solidus: ["master"], ruby: ["3.2"], db: ["postgres"] }
- run-specs:
name: *name
matrix:
parameters: { solidus: ["current"], ruby: ["3.1"], db: ["mysql"] }

0 comments on commit 6a99e83

Please sign in to comment.