Commit Graph

34 Commits

Author SHA1 Message Date
Juliette 711de8bf70
GH Actions: run tests on PRs and show CS violations (#2373)
* GH Actions: run on PRs and allow for manually triggering

Currently the workflow only ran on `push` events, which - as forks have to enable the workflows - means that PRs could be submitted without CI having been run and you'd only see the CI results on merge.

By adding the `pull_request` event, it is ensured that CI is always run within the main repo for pull requests. This also allows for branch protection to be enabled with "required statuses".

Additionally, triggering a workflow for a branch manually is not supported by default in GH Actions, but has to be explicitly allowed.

This is useful if, for instance, an external action script or composer dependency has broken.
Once a fix is available, failing builds for `master` or open PRs can be retriggered manually instead of having to be re-pushed to retrigger the workflow.

Ref: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/

* GH Actions: report CS violations in the PR

Currently the PR template asks for people to run the CS tooling.

As the PHPCS tool is also run in the test workflow and this workflow - per the previous commit - will now also be run on pull requests, we can make life easier on contributors.

The cs2pr tool allows to display the results from an action run in checkstyle format in-line in the PR code view.
This commit enables this for PHPCS, which means that the code view will now show CS violations in the PR.

Ref: https://github.com/staabm/annotate-pull-request-from-checkstyle

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2021-06-23 11:03:18 +02:00
Juliette 8eacfe7925
GH Actions: don't run the docs workflow on forks (#2371)
The `docs` workflow to deploy the GH Pages website is run on pushes to `master`, but that includes pushes to `master` in forks, which obviously can't deploy to the GH Pages site.

This means that in forks (and there are nearly 9000 of them), this workflow will always fail, while in reality, it shouldn't be run in the first place.

So, I'd like to propose making this small change, which _should_ prevent the `docs` workflow from being run on forks.

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2021-06-23 11:00:21 +02:00
Juliette 02eadcc95f
GH Actions: start testing against PHP 8.1 (#2363)
* GH Actions: start testing against PHP 8.1

The first alpha of PHP 8.1 has been released, so now seems like a good time to start running the tests against PHP 8.1.

For now, I've configured it to allow builds against PHP 8.1 to fail, while PHP 8.1 is still unstable.

Also: PHPUnit doesn't officially support PHP 8.1 yet, so to install PHPUnit 9.x on PHP 8.1, we need to use `--ignore-platform-reqs`, as otherwise PHPUnit 4.8 would be installed (last PHPUnit version without strict PHP version constraints).

* GH Actions: set error reporting to E_ALL

Turns out the default setting for `error_reporting` used by the SetupPHP action is `error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT` and `display_errors` is set to `Off`.

For the purposes of CI, I'd recommend running with `E_ALL` and `display_errors=On` to ensure **all** PHP notices are shown.

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2021-06-22 18:51:01 +02:00
Marcus Bointon 3843c6b401
Tidelift funding 2021-03-22 17:59:04 +01:00
Marcus Bointon 34e1c900be
Charset woes 2021-02-18 14:35:27 +01:00
Marcus Bointon 60126a1b90
Back to xdebug we go... 2021-02-18 13:18:58 +01:00
Marcus Bointon 9ff9932ca7
Require pcov 2021-02-18 12:39:35 +01:00
Marcus Bointon f4910c8b0d
Only use clobber on old PHP versions 2021-02-18 12:36:19 +01:00
Marcus Bointon 19b7f3175d
Test env tweaks 2021-02-18 12:23:06 +01:00
Marcus Bointon 81319de7f1
Scrutinizer doesn't work with PHP 8 so remove it, update badges 2020-12-09 22:23:40 +01:00
codedge e78f71aa67
Migrate from TravisCI to GitHub Actions (#2218)
* Remove TravisCI, add Github actions

* Fix missing steps

* Fix composer command

* Fix composer command 2nd :(

* Install postfix

* Postfix set up

* Fix missing sudos

* More sudos

* Fix permissions

* Sendmail path

* Debug

* Debug

* Debug

* Sendmail path

* Code coverage path

* Fix clover.xml path

* Install qmail

* Github Actions CI

* Add more PHP versions

* Add more PHP versions

* Use Ubuntu 18.04

Co-authored-by: Marcus Bointon <marcus@synchromedia.co.uk>
2020-12-09 17:54:59 +01:00
Marcus Bointon ba88479850
Remove version note for phpcs on PR template 2020-10-26 17:24:29 +01:00
Marcus Bointon 22e81749ae
Switch from PHP CS fixer to phpcs and apply PSR12 reformatting 2020-10-13 15:08:42 +02:00
Marcus Bointon 8fceec772a
Remove chmod - wrong path
Also may no longer be needed with action changes.
2019-10-03 13:29:13 +02:00
freezy f2e2153a13 merge two jobs into one (#1857) 2019-10-03 13:03:58 +02:00
Marcus Bointon fb3b27b506
Try a different path 2019-10-03 13:02:02 +02:00
Marcus Bointon 4a9f7b2906
Ensure runner user can read phpdoc output 2019-10-03 12:58:33 +02:00
Marcus Bointon 3563788a86
Fix job name 2019-10-02 13:38:00 +02:00
Marcus Bointon d4daffdb55
Try to fix artifact path 2019-10-02 13:37:01 +02:00
Marcus Bointon 3651595a93
Make publishing docs depend on build succeeding 2019-10-02 13:36:05 +02:00
Marcus Bointon 4b93ad523b
Only build docs on push to master 2019-10-02 11:20:04 +02:00
freezy c1fbe8fe50 [Fixes #1847] Building docs with GitHub Actions (#1855)
* Try building docs with GitHub Actions

* fix GH_PAT secret
2019-10-02 11:09:22 +02:00
Marcus Bointon d51baeb98a
Remove old issue template 2019-09-25 12:42:47 +02:00
Marcus Bointon 7017d3b71e Update issue templates 2019-09-25 11:33:43 +02:00
Marcus Bointon a990e832c0
Create FUNDING.yml 2019-05-30 01:06:24 +02:00
Marcus Bointon 7f7baf5436
Update ISSUE_TEMPLATE.md 2018-06-11 16:32:06 +02:00
Marcus Bointon 916d68cf17
Tweak PR template to be less potentially destructive 2017-10-10 09:10:40 +02:00
Filippo Tessarotto d5ef7a2b5e Create PULL_REQUEST_TEMPLATE.md (#1165) 2017-09-15 15:38:30 +02:00
Marcus Bointon ea25dc122d
Re-add issue template 2017-08-28 13:42:41 +02:00
Marcus Bointon 53d0375d0c
Case sensitivity juggle 2017-08-28 13:42:05 +02:00
Marcus Bointon 81062fa300
Merge remote-tracking branch 'remotes/origin/master' into 6.0
# Conflicts:
#	VERSION
#	src/PHPMailer.php
#	src/POP3.php
#	src/SMTP.php
2017-08-28 13:39:01 +02:00
Marcus Bointon b91bf9267e
Merge remote-tracking branch 'remotes/origin/master' into 6.0
# Conflicts:
#	VERSION
#	src/PHPMailer.php
#	src/POP3.php
#	src/SMTP.php
2017-08-28 13:36:44 +02:00
Marcus Bointon 2baf20b016
v5.2.25 2017-08-28 13:12:07 +02:00
Marcus Bointon 7ee66b9b39 Move issue_template to .github folder 2017-06-14 14:48:50 +02:00