Commit Graph

36 Commits

Author SHA1 Message Date
paul121 f4dc0d72eb Create release with softprops/action-gh-release v0.1.13. #452 2021-10-04 10:27:49 -04:00
Michael Stenta da6888f75d Use default test result printer now that updated version of HtmlOutputPrinter is available. 2021-09-24 14:29:29 -04:00
Michael Stenta 36fb1809fc Run tests in www service instead of test-runner. 2021-09-02 14:44:26 -04:00
paul121 dd2c374f46 Do not run paratest in functional mode. #439 2021-08-23 09:53:56 -04:00
paul121 9cd609e169 Create a docker-compose.testing.common.yml file to share configuration. 2021-08-23 09:18:57 -04:00
Michael Stenta 4bd1855b91 Rename farm_install_modules to farm. 2021-03-18 12:09:34 -04:00
Michael Stenta d6cf678a36 Test Drush site install with all modules via run-tests.yml GitHub Action. 2021-03-18 12:09:06 -04:00
Michael Stenta f360de1ea1 Run PHP CodeSniffer before PHPUnit tests.
CodeSniffer runs much faster than PHPUnit, so it's nice to have the workflow earlier if there are any issues.
2021-03-01 09:03:12 -05:00
Michael Stenta 00d7c91435 Move from 2x.farmos.org to docs.farmos.org. 2021-02-25 22:33:13 -05:00
paul121 f4b778a4b0 Run tests daily. 2021-02-01 10:32:18 -05:00
Symbioquine ed228b7a82 Fix DB_URL part of test matrix #402 2021-01-19 11:10:59 -05:00
Michael Stenta 412cc20be5 Revert "Include the latest commit SHA in the farmOS version."
This reverts commit 43970e4cf3.

See https://github.com/farmOS/farmOS/pull/401
2021-01-19 08:05:12 -05:00
paul121 43970e4cf3 Include the latest commit SHA in the farmOS version. 2021-01-18 14:59:31 -05:00
paul121 5ebcab551a Use correct values for PR event. 2021-01-18 14:59:31 -05:00
Symbioquine 938d80101c Use a test matrix to run tests and site-install against MariaDB/SQLite/Postgres in parallel
**Why?** Detect if things break on specific DBMS' and have ongoing proof
that the top DB options work with farmOS.
2021-01-18 14:31:39 -05:00
Symbioquine f1ef56c610 Make tests much faster with paratest to run tests in parallel
**Why?** Faster testing leads to faster iteration and faster
overall development.

**How?** Leverage paratest which is - mostly - a drop-in for the
invocation of phpunit.
2021-01-12 10:15:47 -08:00
Michael Stenta ef96f35b5e Run all PHPUnit tests in the /opt/drupal/web/profiles/farm directory, instead of using --group farm.
The --group flag fails with a fatal error if there are any tests (even
not in the requested group) that extend from a PHP class that
doesn't exist. This is true for some modules like fraction and
email_registration which have tests that extend from tests in
other modules that we do not include in our composer.json.
2021-01-08 06:40:09 -05:00
Michael Stenta 2e11c6386f Run tests when pull requests are created against the 2.x branch. 2020-12-22 18:32:47 -05:00
Michael Stenta 2fa3220c82 Test Drush site installation in run-tests.yml. 2020-12-07 21:02:05 -05:00
Symbioquine 4f88cdda92 Wait only as long as necessary for Postgres and the farmOS file copying to be done
Also add more documentation to explain what is going on with the sentinel file waiting stuff
2020-11-27 06:53:07 -05:00
Michael Stenta 978fd2d64b Use mkdocs-material theme. 2020-11-24 16:43:29 -05:00
Symbioquine f8c77ea694 Run phpunit without XDebug to speed up tests
**Why:** Tests take about 8 - 9 minutes with XDebug, but closer to
3 minutes without it.

**How:** Implement strategy that mstenta@ described in https://www.drupal.org/project/farm/issues/3183687
using the dev docker image to build up the /opt/drupal directory,
but the prod image to actually run it since that image doesn't have
XDebug.
2020-11-23 16:14:38 -05:00
Symbioquine 6b43b17dbc Trigger running tests on any branch starting with '2.x-' to allow for easier pre-pull-request testing 2020-11-23 16:14:38 -05:00
Michael Stenta 08b93b386d Fix deprecated set-env in GitHub actions.
See https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
2020-11-18 22:33:42 -05:00
Michael Stenta 75a38c7f45 Replace the version in packaged farm.info.yml. 2020-08-19 21:00:35 -04:00
Michael Stenta 8ca1b22708 Run PHP CodeSniffer in run-tests.yml GitHub Action. 2020-08-19 16:31:03 -04:00
Michael Stenta 786ac6c04b The /opt/drupal/vendor/bin is now in PATH in the upstream drupal:9, so vendor/bin prefix is no longer necessary.
See https://github.com/docker-library/drupal/issues/177
2020-08-17 08:49:02 -04:00
Michael Stenta 07fed82f23 Merge farmos/farmos:2.x-base Dockerfile into farmos/farmos:2.x. 2020-08-12 12:50:15 -04:00
Michael Stenta ef09c1fd82 Move codebase to /opt/drupal, symlink /var/www/html to /opt/drupal/web, don't override Apache document root. All to mimic upstream drupal:9 image. 2020-08-12 12:48:05 -04:00
Michael Stenta 1dc614d13d Issue #3162664: GitHub Action for packaging farmOS 2.x releases 2020-08-01 16:37:59 -04:00
Michael Stenta 5713e0926f Add a note to run-tests.yml to highlight that it does not override the farmOS Composer project version. 2020-07-31 13:30:17 -04:00
Michael Stenta 23a5a2ba19 Run tests against the specific branch/commit that triggered the action. 2020-07-31 13:16:18 -04:00
Michael Stenta c00ed4b518 Change development branch from 2.0.x to 2.x. 2020-06-05 10:09:37 -04:00
Michael Stenta 3c373bffde Set the CNAME to 2x.farmos.org for GitHub Pages. 2020-04-30 12:28:23 -04:00
Michael Stenta 245df44d06 Build and publish docs to GitHub Pages using Mkdocs in a GitHub Action. 2020-04-30 12:28:23 -04:00
Michael Stenta 67ed7613f7 Run 2.0.x PHPUnit tests on push via GitHub Actions. 2020-04-30 11:41:13 -04:00