Commit Graph

4 Commits

Author SHA1 Message Date
Andreas Gohr a417911a65 Run tests on PHP 8.0 now 2021-03-04 12:39:49 +01:00
Andreas Gohr bb6dfcb8e3 another try to fix when github actions run
The attempt in 7bbf38eeb4 to not run
checks twice for our own internal pull requests seem not to have worked,
because checks in external PRs were no longer executed.

This is another approach to achieve the same based on code found at
764f121f9a/.github/workflows/build-and-test.yml (L10-L12)
2021-01-05 11:57:55 +01:00
Andreas Gohr 7bbf38eeb4 avoid running tests twice for pull requests
This implements the suggested method from [1]. It runs tests on all pushes to
our own repository and for pull requests coming from other people's forks.

[1] https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
2020-11-20 23:52:08 +01:00
Andreas Gohr 2cf7c325f8 Replace Appveyor and Travis with Github actions
Travis has recently introduced built limits which makes using them very
slow sometimes and I never really liked the setup for appveyor for our
Windows testing.

This makes use of github actions instead. Some notes:

* since we only support PHP 7.2+ anymore, nothing below is tested
* MySQL and Postgres auth backends are only tested on Linux (as before)
* I am not actually sure the problem matchers are working as intended
* There is currently no good way to run tests that are allowed to fail
  so no PHP 8 tests are run yet
* I haven't reestablished the no-gzip test runs again, I'm not sure they
  are still relevant on modern PHP systems
* PHP 7.4 currently fails because of https://github.com/MarcusSchwarz/lesserphp/pull/18
* I'm currently using @v2 tags for the used action. We had a discussion
  before if we should actually pin the action to a fixed commit. For
  sake of easier maintainance, I would argue to trust the setup-php
  action.
2020-11-20 23:50:01 +01:00