fair-plugin/bin/github-actions-matrix.js
Kaspars Dambis b0d4c3dcba
Consistent phpunit runners for local and CI (#493)
Signed-off-by: Kaspars Dambis <hi@kaspars.net>
Co-authored-by: Ipstenu (Mika Epstein) <Ipstenu@users.noreply.github.com>
2026-07-09 09:29:36 -07: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 } ) );