|
8 | 8 | solidusio_extensions: solidusio/extensions@volatile |
9 | 9 |
|
10 | 10 | 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 >> |
13 | 25 | 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 >> |
19 | 28 | lint-code: |
20 | | - executor: solidusio_extensions/sqlite-memory |
| 29 | + executor: |
| 30 | + name: solidusio_extensions/sqlite-memory |
| 31 | + ruby_version: 2.5 |
21 | 32 | steps: |
22 | 33 | - solidusio_extensions/lint-code |
23 | 34 |
|
24 | 35 | workflows: |
25 | 36 | "Run specs on supported Solidus versions": |
26 | 37 | 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"] } |
30 | 50 |
|
31 | | - "Weekly run specs against master": |
| 51 | + "Weekly run specs against main": |
32 | 52 | triggers: |
33 | 53 | - schedule: |
34 | 54 | cron: "0 0 * * 4" # every Thursday |
35 | 55 | filters: |
36 | 56 | branches: |
37 | 57 | only: |
38 | | - - master |
| 58 | + - main |
39 | 59 | 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