Skip to content

digitalutsc/reusable_workflows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reusable Drupal Workflows

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.

Usage

Please refer to Github's official documentation for reusable workflows.

Workflows

ci-testing.yml

This workflow runs PHP-CS, Drupal Check, and any tests written for an individual module on various versions of Drupal and PHP.

Parameters

  • 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.

Requirements

  • composer.json file
  • If using the default phpunit.xml, then tests must be located under ./tests/src/Unit, ./tests/src/Functional, or ./tests/src/Kernel.

Acknowledgements

ci-testing.yml is based on Islandora's implementation of similar tests.

About

Reusable workflows for Github Actions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages