Skip to content

Commit c9fa639

Browse files
committed
Update CircleCI Config to latest
1 parent bdebd1e commit c9fa639

1 file changed

Lines changed: 50 additions & 12 deletions

File tree

.circleci/config.yml

Lines changed: 50 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,73 @@
11
version: 2.1
22

33
orbs:
4+
# Required for feature specs.
5+
browser-tools: circleci/browser-tools@1.1
6+
47
# Always take the latest version of the orb, this allows us to
58
# run specs against Solidus supported versions only without the need
69
# to change this configuration every time a Solidus version is released
710
# or goes EOL.
811
solidusio_extensions: solidusio/extensions@volatile
912

1013
jobs:
11-
run-specs-with-postgres:
12-
executor: solidusio_extensions/postgres
14+
run-specs:
15+
parameters:
16+
solidus:
17+
type: string
18+
default: main
19+
db:
20+
type: string
21+
default: "postgres"
22+
ruby:
23+
type: string
24+
default: "3.2"
25+
executor:
26+
name: solidusio_extensions/<< parameters.db >>
27+
ruby_version: << parameters.ruby >>
1328
steps:
14-
- solidusio_extensions/run-tests
15-
run-specs-with-mysql:
16-
executor: solidusio_extensions/mysql
29+
- checkout
30+
- browser-tools/install-chrome
31+
- solidusio_extensions/run-tests-solidus-<< parameters.solidus >>
32+
33+
lint-code:
34+
executor:
35+
name: solidusio_extensions/sqlite
36+
ruby_version: "3.2"
1737
steps:
18-
- solidusio_extensions/run-tests
38+
- solidusio_extensions/lint-code
1939

2040
workflows:
2141
"Run specs on supported Solidus versions":
2242
jobs:
23-
- run-specs-with-postgres
24-
- run-specs-with-mysql
25-
"Weekly run specs against master":
43+
- run-specs:
44+
name: &name "run-specs-solidus-<< matrix.solidus >>-ruby-<< matrix.ruby >>-db-<< matrix.db >>"
45+
matrix:
46+
parameters: { solidus: ["main"], ruby: ["3.2"], db: ["postgres"] }
47+
- run-specs:
48+
name: *name
49+
matrix:
50+
parameters: { solidus: ["current"], ruby: ["3.1"], db: ["mysql"] }
51+
- run-specs:
52+
name: *name
53+
matrix:
54+
parameters: { solidus: ["older"], ruby: ["3.1"], db: ["sqlite"] }
55+
- lint-code
56+
57+
"Weekly run specs against main":
2658
triggers:
2759
- schedule:
2860
cron: "0 0 * * 4" # every Thursday
2961
filters:
3062
branches:
3163
only:
32-
- master
64+
- main
3365
jobs:
34-
- run-specs-with-postgres
35-
- run-specs-with-mysql
66+
- run-specs:
67+
name: *name
68+
matrix:
69+
parameters: { solidus: ["main"], ruby: ["3.2"], db: ["postgres"] }
70+
- run-specs:
71+
name: *name
72+
matrix:
73+
parameters: { solidus: ["current"], ruby: ["3.1"], db: ["mysql"] }

0 commit comments

Comments
 (0)