Skip to content

Commit 06b95c1

Browse files
committed
Change circleci config
1 parent f991e63 commit 06b95c1

File tree

1 file changed

+42
-15
lines changed

1 file changed

+42
-15
lines changed

.circleci/config.yml

Lines changed: 42 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,61 @@ orbs:
88
solidusio_extensions: solidusio/extensions@volatile
99

1010
jobs:
11-
run-specs-with-postgres:
12-
executor: solidusio_extensions/postgres
11+
run-specs:
12+
parameters:
13+
solidus:
14+
type: string
15+
default: main
16+
db:
17+
type: string
18+
default: "postgres"
19+
ruby:
20+
type: string
21+
default: "3.2"
22+
executor:
23+
name: solidusio_extensions/<< parameters.db >>
24+
ruby_version: << parameters.ruby >>
1325
steps:
14-
- solidusio_extensions/run-tests
15-
run-specs-with-mysql:
16-
executor: solidusio_extensions/mysql
17-
steps:
18-
- solidusio_extensions/run-tests
26+
- checkout
27+
- solidusio_extensions/run-tests-solidus-<< parameters.solidus >>
1928
lint-code:
20-
executor: solidusio_extensions/sqlite-memory
29+
executor:
30+
name: solidusio_extensions/sqlite-memory
31+
ruby_version: 2.5
2132
steps:
2233
- solidusio_extensions/lint-code
2334

2435
workflows:
2536
"Run specs on supported Solidus versions":
2637
jobs:
27-
- run-specs-with-postgres
28-
- run-specs-with-mysql
29-
- lint-code
38+
- run-specs:
39+
name: &name "run-specs-solidus-<< matrix.solidus >>-ruby-<< matrix.ruby >>-db-<< matrix.db >>"
40+
matrix:
41+
parameters: { solidus: ["main"], ruby: ["3.2"], db: ["postgres"] }
42+
- run-specs:
43+
name: *name
44+
matrix:
45+
parameters: { solidus: ["current"], ruby: ["3.1"], db: ["mysql"] }
46+
- run-specs:
47+
name: *name
48+
matrix:
49+
parameters: { solidus: ["older"], ruby: ["3.0"], db: ["sqlite"] }
3050

31-
"Weekly run specs against master":
51+
"Weekly run specs against main":
3252
triggers:
3353
- schedule:
3454
cron: "0 0 * * 4" # every Thursday
3555
filters:
3656
branches:
3757
only:
38-
- master
58+
- main
3959
jobs:
40-
- run-specs-with-postgres
41-
- run-specs-with-mysql
60+
- run-specs:
61+
name: *name
62+
matrix:
63+
parameters: { solidus: ["main"], ruby: ["3.2"], db: ["postgres"] }
64+
- run-specs:
65+
name: *name
66+
matrix:
67+
parameters: { solidus: ["current"], ruby: ["3.1"], db: ["mysql"] }
68+

0 commit comments

Comments
 (0)