Title: Continuing the transition to GitHub Actions for automated testing
Author: Jonathan Desrosiers
Published: December 23, 2020
Last modified: March 16, 2021

---

 [  ](https://profiles.wordpress.org/desrosj/) [Jonathan Desrosiers](https://profiles.wordpress.org/desrosj/)
2:31 pm _on_ December 23, 2020     
Tags: [build-test-tools ( 7 )](https://make.wordpress.org/core/tag/build-test-tools/),
[github ( 10 )](https://make.wordpress.org/core/tag/github/), [github-actions ( 2 )](https://make.wordpress.org/core/tag/github-actions/)

# Continuing the transition to GitHub Actions for automated testing

Two months ago, the configuration files needed to run automated tests using GitHubGitHub
GitHub is a website that offers online implementation of git repositories that can
easily be shared, copied and modified by other developers. Public repositories are
free to host, private repositories require a paid subscription. GitHub introduced
the concept of the ‘pull request’ where code changes done in branches by contributors
can be reviewed and discussed before being merged by the repository owner. [https://github.com/](https://github.com/)
Actions were added to WordPress CoreCore Core is the set of software required to
run WordPress. The Core Development Team builds WordPress..

> [GitHub Actions](https://github.com/features/actions) allows us to automate software
> workflows directly in GitHub, triggered by GitHub events. By switching, we are
> able to take advantage of a unified interface, inline annotations for linting 
> issues in pull requests, the broader open sourceOpen Source Open Source denotes
> software for which the original source code is made freely available and may be
> redistributed and modified. Open Source **must be** delivered via a licensing 
> model, see GPL. ecosystem building and using Actions including [existing work in Gutenberg](https://github.com/WordPress/gutenberg/tree/d14b01d607df0db8900dc4a53f26660f21118620/.github/workflows),
> and free availability for public repositories. Note that private repositories 
> do use the monthly bucket of included minutes.
> [Introducing GitHub Actions for Automated Testing](https://make.wordpress.org/core/2020/10/15/introducing-github-actions-for-automated-testing/)

During this transition process, the workflows have been running smoothly with only
small issues coming up (which have been fixed). The workflows are also performing
better or identically to those run in TravisCI.

With the [branching of 5.6](https://core.trac.wordpress.org/changeset/49643/branches/5.6),
the workflows have been running for both `trunk` and the `5.6 `branches. This has
allowed them to be tested successfully in both the primary and non-primary branches.

Since [[49162]](https://core.trac.wordpress.org/changeset/49162), an additional 
workflow that generates a code coverage report has also been introduced. Currently,
[this workflow generates coverage reports for both single and multisite installs and uploads the reports as artifacts to the workflow run](https://github.com/WordPress/wordpress-develop/actions/runs/433182861).
For now, this workflow runs weekly on Sunday at 00:00 UTC. [#52141](https://core.trac.wordpress.org/ticket/52141)
has been opened to explore submitting the reports to an external service

Additionally, TravisCI has made further changes to their pricing models. As a result,
no builds for the WordPress organization have run since the first week of December.
When this happened, efforts to transition all repositories under the [WordPress GitHub organization](https://github.com/wordpress/)
from TravisCI to GitHub Actions were accelerated.

As of today, all repositories have been fully transitioned to GitHub Actions except
the [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards)(
which has an [open PR being actively refined](https://github.com/WordPress/WordPress-Coding-Standards/pull/1965)),
and the ones noted below. These are lower priority repositories because they are
updated much less frequently than others. Here they are ranked in order of priority
highest to lowest:

 * [WordPress Importer plugin](https://github.com/WordPress/wordpress-importer/)
 * [phpunit-test-reporter](https://github.com/WordPress/phpunit-test-reporter/)
 * [phpunit-test-runner](https://github.com/WordPress/phpunit-test-runner)
 * [application-passwords](https://github.com/WordPress/application-passwords/)
 * [two-factor](https://github.com/WordPress/two-factor/)
 * [health-check](https://github.com/WordPress/health-check)

**Pull requests are very much welcome!**

The Appveyor build configuration (which has been replaced with the [Test NPM on Windows workflow](https://github.com/WordPress/wordpress-develop/actions?query=workflow%3A%22Test+NPM+on+Windows%22))
was removed from Core in [49779,49809-49814], and the TravisCI configuration was
removed in [[49876-49898]](https://core.trac.wordpress.org/log/?revs=49876-49898).

## Forked repositories

To avoid workflows from running unnecessarily, conditional checks have been added
to prevent all workflows from running in forked repositories. There are two exceptions
to this:

 * When a pull request is opened to the official `wordpress-develop` repository 
   from a fork.
 * When a pull request is opened to a forked repository from within a fork.

## Known next steps (updated)

 1. Add and configure SlackSlack Slack is a Collaborative Group Chat Platform [https://slack.com/](https://slack.com/).
    The WordPress community has its own Slack Channel at [https://make.wordpress.org/chat/](https://make.wordpress.org/chat/)
    notifications. In addition to sending the results of the whole build of a core 
    commit into [#core](https://make.wordpress.org/core/tag/core/), we may also want
    to consider a firehose channel for PRs. This may require all workflows to be combined
    into a single workflow if needed middleware cannot be found.
 2. Backportbackport A port is when code from one branch (or trunk) is merged into 
    another branch or trunk. Some changes in WordPress point releases are the result
    of backporting code from trunk to the release branch. the workflow files to actively
    maintained older branches.
 3. Finish backporting the local Docker environment to branches 3.7-4.5. This is blocked
    by:
 4.  *  [wpdev-docker-images#46](https://github.com/WordPress/wpdev-docker-images/pull/46),
       which aims to fix the PHPPHP The web scripting language in which WordPress is
       primarily architected. WordPress requires PHP 7.4 or higher 5.2 PHPUnit image
       to include the requred version of PHPUnit (3.6).
     * WP branches <= 4.5 are running a version of NodeJS that is too old for the needed
       NPM packages required to run the local Docker environment.
 5. Move to [GitHub badges](https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/adding-a-workflow-status-badge)
    for build status indicators – note that these are per-workflow, which is different
    from the single badge for the entire Travis build for a given commit. However, 
    GitHub does report an overall status for a commit/PR, so we may be able to use 
    that information as well. It seems that the expectation in the greater developer
    community is that projects report status with a singular badge. Like the Slack 
    notifications, this may require the workflows to be combined in the absence of 
    middleware.
 6. ~Report test results to the [Host Test Results](https://make.wordpress.org/hosting/test-results/)
    page.~ The MySQLMySQL MySQL is a relational database management system. A database
    is a structured collection of data where content, configuration and other options
    are stored. [https://www.mysql.com](https://www.mysql.com/) version being tested
    is not currently being reported (see [phpunit-test-runner#135](https://github.com/WordPress/phpunit-test-runner/issues/135)).
 7. Switch to ESLint from JSHint, as the latter does not appear to easily support inline
    annotations, and the former is in broader usage including in core for docs, GutenbergGutenberg
    The Gutenberg project is the new Editor Interface for WordPress. The editor improves
    the process and experience of creating new content, making writing rich content
    much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML
    etc. [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/) and many
    community projects. See [#31823](https://core.trac.wordpress.org/ticket/31823) 
    for more – **volunteers very much appreciated here.**

**Committers: Until the Slack notifications are configured, please monitor the workflow
runs associated with your commits to ensure they pass.**

The goal is for the remaining repositories and items 1-3 above to be completed in
January 2021.

_Props [@helen](https://profiles.wordpress.org/helen/) for peer reviewing this post._

[#build-test-tools](https://make.wordpress.org/core/tag/build-test-tools/), [#github](https://make.wordpress.org/core/tag/github/),
[#github-actions](https://make.wordpress.org/core/tag/github-actions/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2020/12/23/continuing-the-transition-to-github-actions-for-automated-testing/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2020/12/23/continuing-the-transition-to-github-actions-for-automated-testing/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2020/12/23/continuing-the-transition-to-github-actions-for-automated-testing/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2020/12/23/continuing-the-transition-to-github-actions-for-automated-testing/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2020/12/23/continuing-the-transition-to-github-actions-for-automated-testing/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2020/12/23/continuing-the-transition-to-github-actions-for-automated-testing/?share=linkedin)

 1.  ![](https://secure.gravatar.com/avatar/247c6d64a9cef124d55f50af6588ea5c0b96c59dae02a045a59eab31bc7cd7e5?
     s=32&d=mm&r=g)
 2.   [BackuPs](https://profiles.wordpress.org/backups/)  4:51 pm _on_ December 23,
     2020
 3.  I wonder though what the benefit is of this? I posted a pull request for one of
     the listed plugins in october this year. Not a single response until today. It
     is listed here as high priority pluginPlugin A plugin is a piece of software containing
     a group of functions that can be added to a WordPress website. They can extend
     functionality or add new features to your WordPress websites. WordPress plugins
     are written in the PHP programming language and integrate seamlessly with WordPress.
     These can be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
     or can be cost-based plugin from a third-party. in the order given. I would prefer
     to see the developers supporting these plugins at least give some feedback in 
     a timely manner. Otherwise users stop reporting or suggesting new solutions or
     bugbug A bug is an error or unexpected result. Performance improvements, code 
     optimization, and are considered enhancements, not defects. After feature freeze,
     only bugs are dealt with, with regressions (adverse changes from the previous 
     version) being the highest priority. fixes.
 4.   * ![](https://secure.gravatar.com/avatar/18f4f7ebdcd48383951a52a88f401bd6460ae74b626016010b1f0604cac90826?
        s=32&d=mm&r=g)
      *  [Jonathan Desrosiers](https://profiles.wordpress.org/desrosj/)  6:47 pm _on_
        December 23, 2020
      * The benefit of this is that automated testing across the entire WordPress organization
        can resume.
      * To be clear, the list above is not saying that those plugins are high priority.
        It is ranking them in the order converting their automated testing will be 
        tackled.
      * I’m sorry that your pull request has not yet received a response. The importer
        pluginPlugin A plugin is a piece of software containing a group of functions
        that can be added to a WordPress website. They can extend functionality or 
        add new features to your WordPress websites. WordPress plugins are written 
        in the PHP programming language and integrate seamlessly with WordPress. These
        can be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
        or can be cost-based plugin from a third-party. currently falls outside of 
        the project’s overall priorities, and no one has shown an interest in owning
        that plugin to support new feature requests. This is an entirely separate discussion,
        though, and falls outside of these efforts, which are very important to the
        organization as a whole.
 5.  ![](https://secure.gravatar.com/avatar/d49139aae88b36b005da13cd5acf63b1904c3066d020ba0480cb8986d50f9d44?
     s=32&d=mm&r=g)
 6.   [Juliette Reinders Folmer](https://profiles.wordpress.org/jrf/)  2:56 am _on_
     December 28, 2020
 7.  There is a PR open now for WP Importer: [https://github.com/WordPress/wordpress-importer/pull/93](https://github.com/WordPress/wordpress-importer/pull/93)
 8.  ![](https://secure.gravatar.com/avatar/a2690bc3e7ef0350cac88e27809169288b0086b1714707655fd2635026a0670b?
     s=32&d=mm&r=g)
 9.   [Robert Anderson](https://profiles.wordpress.org/noisysocks/)  4:07 am _on_ January
     4, 2021
 10. Thanks for working on this!
 11. ![](https://secure.gravatar.com/avatar/ae4a4e54f58de7f040c1caef738bb56f5ccaf16b0eed9b2304df92826609d3ca?
     s=32&d=mm&r=g)
 12.  [Mike Schroder](https://profiles.wordpress.org/kirasong/)  9:25 am _on_ January
     6, 2021
 13. It’s worth noting that the `phpunit-test-runner` has a Travis config, but it is
     meant for use by folks that clone the repo to set up a reporter, and not the repo
     itself.
 14. It’d be good to have an example GithubGitHub GitHub is a website that offers online
     implementation of git repositories that can easily be shared, copied and modified
     by other developers. Public repositories are free to host, private repositories
     require a paid subscription. GitHub introduced the concept of the ‘pull request’
     where code changes done in branches by contributors can be reviewed and discussed
     before being merged by the repository owner. [https://github.com/](https://github.com/)
     Action there, but as long as things are configured so that it doesn’t run the 
     Travis config for commits/PRs, that might be enough for the immediate concern 
     on that repo.

Comments are closed.

# Post navigation

[← Twenty Twenty-One and Twenty Nineteen updates now available](https://make.wordpress.org/core/2020/12/22/twenty-twenty-one-and-twenty-nineteen-updates-now-available/)

[What’s new in Gutenberg? (23 December) →](https://make.wordpress.org/core/2020/12/23/whats-new-in-gutenberg-23-december/)