Skip to content

Commit

Permalink
Update CircleCI config to Latest
Browse files Browse the repository at this point in the history
  • Loading branch information
cpfergus1 committed May 5, 2023
1 parent 06a0dba commit 7872c5c
Showing 1 changed file with 40 additions and 20 deletions.
60 changes: 40 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,47 @@ orbs:
solidusio_extensions: solidusio/extensions@volatile

jobs:
run-specs-with-sqlite:
executor: solidusio_extensions/sqlite
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:
- checkout
- browser-tools/install-chrome
- solidusio_extensions/run-tests
run-specs-with-postgres:
executor: solidusio_extensions/postgres
steps:
- browser-tools/install-chrome
- solidusio_extensions/run-tests
run-specs-with-mysql:
executor: solidusio_extensions/mysql
steps:
- browser-tools/install-chrome
- solidusio_extensions/run-tests
- solidusio_extensions/run-tests-solidus-<< parameters.solidus >>

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

workflows:
"Run specs on supported Solidus versions":
jobs:
- run-specs-with-sqlite
- run-specs-with-postgres
- run-specs-with-mysql
- 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"] }
- lint-code

"Weekly run specs against master":
Expand All @@ -48,6 +63,11 @@ workflows:
only:
- master
jobs:
- run-specs-with-sqlite
- 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 7872c5c

Please sign in to comment.