Skip to content

Commit 657fbee

Browse files
committed
task: add support for injecting matrix configurations
1 parent 79c094c commit 657fbee

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

scripts/generate-matrix.js

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,35 @@ const FLAVORS = [
66
];
77

88
/**
9-
* @todo change url when https://github.com/FriendsOfShopware/shopware-static-data/pull/1 is merged.
9+
* Hardcode some versions, because e.g. there are no tags for them.
1010
*/
11+
const HARDCODED_MATRIX = [
12+
{
13+
"shopware-version": "trunk",
14+
"php-version": "8.1",
15+
"flavour": "bullyseye",
16+
"template": "https://github.com/shopware/platform",
17+
},
18+
{
19+
"shopware-version": "trunk",
20+
"php-version": "8.1",
21+
"flavour": "alpine",
22+
"template": "https://github.com/shopware/platform",
23+
},
24+
{
25+
"shopware-version": "trunk",
26+
"php-version": "8.2",
27+
"flavour": "bullyseye",
28+
"template": "https://github.com/shopware/platform",
29+
},
30+
{
31+
"shopware-version": "trunk",
32+
"php-version": "8.2",
33+
"flavour": "alpine",
34+
"template": "https://github.com/shopware/platform",
35+
},
36+
];
37+
1138
const loadShopwarePHPVersions = async () => {
1239
const response = await fetch("https://raw.githubusercontent.com/FriendsOfShopware/shopware-static-data/main/data/all-supported-php-versions-by-shopware-version.json")
1340
return await response.json();
@@ -96,6 +123,7 @@ async function main() {
96123

97124
return matrix;
98125
})
126+
.concat(HARDCODED_MATRIX)
99127
.flat();
100128

101129
console.log(JSON.stringify({

0 commit comments

Comments
 (0)