mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2026-08-05 13:00:26 +08:00
Signed-off-by: Kaspars Dambis <hi@kaspars.net> Signed-off-by: Chuck Adams <chaz@chaz.works> Signed-off-by: Ipstenu (Mika Epstein) <Ipstenu@users.noreply.github.com> Signed-off-by: Carrie Dils <cdils@users.noreply.github.com> Signed-off-by: cdils <cdils@users.noreply.github.com> Co-authored-by: Kaspars Dambis <hi@kaspars.net> Co-authored-by: Namith Jawahar <48271037+namithj@users.noreply.github.com> Co-authored-by: Andy Fragen <andy@thefragens.com> Co-authored-by: Chuck Adams <chaz@chaz.works> Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com> Co-authored-by: Carrie Dils <cdils@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
17 lines
654 B
JavaScript
Executable file
17 lines
654 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
// PHP versions and their supported WP versions.
|
|
const supported = {
|
|
"8.0": [ "6.2", "6.3", "6.4", "6.5", "6.6", "6.7", "6.8", "6.9", "7.0" ],
|
|
"8.1": [ "6.2", "6.3", "6.4", "6.5", "6.6", "6.7", "6.8", "6.9", "7.0" ],
|
|
"8.2": [ "6.2", "6.3", "6.4", "6.5", "6.6", "6.7", "6.8", "6.9", "7.0" ],
|
|
"8.3": [ "6.4", "6.5", "6.6", "6.7", "6.8", "6.9", "7.0" ],
|
|
"8.4": [ "6.7", "6.8", "6.9", "7.0" ],
|
|
"8.5": [ "6.9", "7.0", "trunk" ],
|
|
};
|
|
|
|
const include = Object.entries( supported ).flatMap( ( [ php, wps ] ) =>
|
|
wps.map( ( wp ) => ( { "php-version": php, "wp-version": wp } ) )
|
|
);
|
|
|
|
process.stdout.write( JSON.stringify( { include } ) );
|