Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use the downloaded tmp directory to source the wp-latest.json * add fonts namespace and font dir mods * load our font dir mods we're loading after pantheon-updates because that's where the get_current_wordpress_version helper is defined * initial hello world tests * test the pantheon_font_dir function works as expected * allow a nightly version of WP to be installed * handle installed nightly releases for testing * create wp-config for nightly wp if one doesn't exist * install latest gutenberg if we're running tests on latest wp this allows us to test things that are in gutenberg but haven't been merged into core yet * fix spacing * Add font library retrieval function from Gutenberg * change how we identify whether to skip the test check wp version and then maybe pull font library out of gutenberg * Add test for our font directory filtering * use a function to get the modify fonts dir value * use the new function rather than a constant * don't add our own filter we don't need a filter if users can just filter it themselves. * lower the priority of our font_dir filter this means that if a customer adds the filter with the default priority, it will override our modification. * test that lowering the priority and filtering font_dir overrides our modification * test disabling our font dir modification * linting fixes * fix download function for shellcheck * check if the file exists first * install wp-cli for tests * move multisite tests to run before nightly tests * setup nightly tests * use latest checkout * remove reference to non-existant filter * return after marking test skipped * maybe we need to check against latest 6.4.x * explicitly skip tests if wp_get_font_dir does not exist after trying to load gberg * don't remove non-existant file * better prompt for local install * turn on debugging for phpunit test * remove the rm's which apparently aren't doing anything * don't define a path because I guess we're installing in the current directory * try /tmp/wordpress * remove debug mode * add labels and dividers between each run * add composer-diff workflow * fix prerelease check logic * capital W and P, i guess, dangit * test on all PHPs * break wp_get_upload_dir out to a global * use our global for the wp_upload_dir * switch the wp_ prefix for pantheon_ so we don't ever end up with accidental naming clashes * ignore unused variable it's not actually unused * Mock our pantheon_upload_dir global so we can test against it * don't prefix property with an underscore * linting fixes * simplify font dir Co-authored-by: Phil Tyler <[email protected]> * remove function and just use the filter * remove wp version checks and rely on wp_get_font_dir check * remove function call because function no longer exists * use wpunit-helpers instead of our own files * remove shellcheck action we don't need it since these are shellchecked at the source * allow the wpunit-helpers plugin * gitignore the scripts sourced by wpunit-helpers * after copying the files, we need to chmod them, so hook to post-install and post-update * update syntax and add a nightly script * bump actions/cache * use the new release --------- Co-authored-by: Phil Tyler <[email protected]>
- Loading branch information