This repository hosts reusable workflows for Github Actions for use with Drupal modules. The workflows can be found in .github/workflows.
The rest of the repository is dedicated to a custom Drupal module to ensure that that the Actions work properly with a module.
Please refer to Github's official documentation for reusable workflows.
This workflow runs PHP-CS, Drupal Check, and any tests written for an individual module on various versions of Drupal and PHP.
module_name(Required) Machine name of the module.composer_name(Required) Module name given by composer (e.g.drupal/token).test_suite(Optional) Comma-separated list of test suites to run. Defaults to running unit, kernel, and functional tests. If empty, no test suites are run.phpunit_path(Optional) Path to custom PHPUnit file in calling repository. If empty, uses the phphunit.xml from this repository.
composer.jsonfile- If using the default
phpunit.xml, then tests must be located under./tests/src/Unit,./tests/src/Functional, or./tests/src/Kernel.
ci-testing.yml is based on Islandora's implementation of similar tests.