1
0
Fork 0
Commit Graph

74 Commits (811dfd3a136ff482c6d84fd19e6545bd76b60804)

Author SHA1 Message Date
Jordi Boggiano 8f24b67c3c
Try to fix lowest deps tests 2024-11-14 11:47:19 +01:00
Juliette 6385079695
GH Actions: update the CI workflow for the release of PHP 8.3 (#11726)
PHP 8.4 has been added as experimental.
And the "high" PHP builds for the variations have been updated to use PHP 8.3.

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2023-12-08 18:25:18 +01:00
dependabot[bot] 77de19dcaa
Bump actions/checkout from 3 to 4 (#11621)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-07 14:47:04 +02:00
Juliette bb1aa8432f
GH Actions: run against PHP 8.3 (#11601)
* GH Actions: run against PHP 8.3

What with PHP 8.3 being close to the first RC, I'd like to suggest enabling runs against PHP 8.3 for the linting and test runs.

* Linting passes on PHP 8.3, so I propose to not allow new failures to be introduced there.
* The test runs, however, do not pass against PHP 8.3, so I'm marking those as `experimental` for now to allow for fixing the issue(s).

As for the compatibility issues (based on the test runs):
* PR 11599 fixes all known deprecation notices.
* There is, however, one test failure, which I'm not exactly sure how to fix, so I'm leaving this for the maintainers to decide upon.
    Details:
    Prior to PHP 8.3, `ReflectionMethod` could set a `private` method on a parent class to accessible. This is no longer possible in PHP 8.3 since php/php-src 9470 and breaks the `Composer\Test\Repository\ComposerRepositoryTest::testWhatProvides` test.
    Also see: https://3v4l.org/8YcIk/rfc#vgit.master

* GH Actions: update addition of PHP 8.3

* Don't add PHP 8.3 to the `lint` workflow.
* Replace the PHP 8.2 extra builds instead of adding to them for `test`.
* Don't allow builds to fail.

---------

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2023-08-30 15:53:45 +02:00
Andreas Möller 9eb9e0dcb3
Fix: Require tests on PHP 8.2 to pass (#11554) 2023-07-21 11:10:15 +02:00
Jordi Boggiano cbb7c91223
Fix ClassLoader to be serializable (#11237)
* Fix ClassLoader to be serializable

* Fix CI to use the source bin/composer as process for "composer" runs incl within simple-phpunit

* Store the closure statically to avoid serialization issues in a cleaner way
2022-12-22 15:17:04 +01:00
Jordi Boggiano 16ee2e479f
Merge branch '2.2' into 2.3 2022-06-22 09:16:23 +02:00
naveen 14476ec2a6
chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-06-22 08:18:22 +02:00
jrfnl dca2d49d0c
GH Actions: version update for various predefined actions
A number of predefined actions have had major release, which warrant an update to the workflow(s).

These updates don't actually contain any changed functionality, they are mostly just a change of the Node version used by the action itself (from Node 14 to Node 16).

Refs:
* https://github.com/actions/checkout/releases

P.S.: looks like there are some more actions in use which have had new major releases. As those actually _do_ contain changed functionality, I've excluded the others from this PR.
2022-03-15 12:49:38 +01:00
jrfnl 6b36f822d6
GH Actions: version update for various predefined actions
A number of predefined actions have had major release, which warrant an update to the workflow(s).

These updates don't actually contain any changed functionality, they are mostly just a change of the Node version used by the action itself (from Node 14 to Node 16).

Refs:
* https://github.com/actions/checkout/releases

P.S.: looks like there are some more actions in use which have had new major releases. As those actually _do_ contain changed functionality, I've excluded the others from this PR.
2022-03-05 19:17:37 +01:00
Jordi Boggiano 095c36ecf8
Fix some PHPStan errors/.. 2022-01-01 14:54:20 +01:00
Jordi Boggiano 59603a357a
Remove PHPUnit direct require again 2022-01-01 14:54:19 +01:00
Jordi Boggiano 2a771dfb2d
Update PHPUnit to 8.5 2022-01-01 14:54:19 +01:00
Jordi Boggiano d2ede370be
Bump target version, bump PHP and dependency requirements to PHP 7.2+ 2022-01-01 14:54:18 +01:00
Jordi Boggiano aeb206bcfb
Fix CI for LTS 2021-12-09 12:02:20 +01:00
Jordi Boggiano ef728bf8f7
Avoid removing the platform config on every build 2021-12-08 22:03:22 +01:00
Jordi Boggiano f758da32c9
Merge branch '2.1' into main 2021-11-30 10:39:44 +01:00
Jordi Boggiano 965b12cdec
Allow alpha and above for latest deps build to catch dependency problems earlier next time 2021-11-30 10:32:23 +01:00
Yanick Witschi 34183f49f9
Implemented PoolOptimizer 2021-11-11 16:13:24 +01:00
Fabien Villepinte 1dd2bc6f02
Validate composer.lock strictly (#10160) 2021-10-15 15:11:38 +02:00
Jordi Boggiano 135611fc9d
Add deprecation baseline for php8.1+ builds which use locked or lowest dependencies 2021-10-15 13:37:02 +02:00
Jordi Boggiano 5818b4aa51
Attempt fixing php8.1 build 2021-10-15 12:55:41 +02:00
Juliette 5f48f87501
PHPUnit: move environment variable into PHPUnit config file (#10062)
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2021-08-19 13:21:04 +02:00
jrfnl 617d63f40a 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.
2021-06-21 21:03:38 +02:00
Jordi Boggiano d6d4069b30
Try to fix windows CI again 2021-02-23 20:15:00 +01:00
Jordi Boggiano 06ef815ec8
Quote caret to avoid issues with cmd.exe 2021-02-23 20:10:25 +01:00
Jordi Boggiano e1570798cd
Bump CI versions 2021-02-23 20:00:29 +01:00
Jordi Boggiano cfb3b85454
Update semver to latest 2020-11-12 12:59:48 +01:00
Graham Campbell ceeb743d0b Use latest phpunit 2020-10-13 14:14:45 +01:00
Jordi Boggiano cb1c35ab52
Fix typo 2020-10-13 11:42:31 +02:00
Jordi Boggiano fcbeedbb3a
Merge branch '1.10' 2020-10-13 11:22:34 +02:00
Jordi Boggiano 4a8dbcd145
Fix set-env to use the new gh actions files 2020-10-13 11:17:42 +02:00
Jordi Boggiano 711d4792ce
Attempt rolling back a couple changes 2020-09-11 11:23:24 +02:00
Graham Campbell 144d8e5359
Removed guff 2020-09-11 11:23:24 +02:00
Graham Campbell 1a2fea3509
Fix actions on PHP 8.0 2020-09-11 11:23:24 +02:00
Jordi Boggiano 1593b67230
Fix warnings on higher phpunit versions 2020-09-11 11:01:32 +02:00
Graham Campbell f5c2bdb783 Use latest cache action 2020-08-18 10:23:09 +01:00
Markus Staab fdff3aeaba
emit github action formatted error messages (#9120) 2020-08-13 16:37:32 +02:00
Jordi Boggiano 8dae1dd45a
Merge branch '1.10' 2020-07-16 13:05:17 +02:00
Jordi Boggiano eec2f8d423
Remove highest/lowest builds for 1.10 maintenance branch 2020-07-16 12:37:54 +02:00
Ayesh Karunaratne d906ff12c9
PHPStan fixes: `autoload_files`, and `ignoreErrors` (#8974)
* PHPStan: Remove autoload_files directive as it is not necessary anymore

* PHPStan: Add error exclusions for sapi_windows_set_ctrl_handler function

* PHPStan: Add error exclusions for ZipArchive::LIBZIP_VERSION

* PHPStan: Require phpstan ^0.12.26

* Ensure zip ext is available on gh actions

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2020-06-16 10:05:44 +02:00
Jordi Boggiano 81c6fe987b
Remove empty env var 2020-06-03 10:26:56 +02:00
Graham Campbell 7a97741aae
Use --ignore-platform-req=php (#8936) 2020-06-02 13:03:58 +02:00
Jordi Boggiano 0a0291e913
Remove deprecated flag 2020-05-28 10:31:46 +02:00
Jordi Boggiano ce52c408f0
Disable platform checks for php8 2020-05-28 10:15:38 +02:00
Jordi Boggiano 38557b2460
Reorder build steps 2020-05-28 09:49:41 +02:00
Jordi Boggiano dce9b129bb
Use PUB 5.1+ for php8 builds 2020-05-28 09:37:22 +02:00
Jordi Boggiano 5ab0ecda04
Try disabling platform-check for PHPUnitBridge on php8 2020-05-27 22:12:12 +02:00
Jordi Boggiano e8acd60245
Fix sudo command 2020-05-26 21:34:56 +02:00
Jordi Boggiano 59f9633244
Again.. 2020-05-26 20:26:58 +02:00