fair-plugin/bin/github-actions-matrix.js
Ipstenu (Mika Epstein) c569ddf212
Release 1.4.1 (#515)
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>
2026-07-14 09:33:18 -05:00

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 } ) );