Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH Actions: split PHAR build test from other tests
As things were in the CI script, the `phpcs` and `phpcbf` Phars would be build against each supported PHP version and the tests run with the `phpcs` Phar would use the Phar as build on the same PHP version as the test was being run on. This test was not representative of the reality as with each release, only one `phpcs` and one `phpcbf` phar is released. The changes in this commit: * Split the building of the Phar off from the main test script. * This new `build` job: - Tests building the Phar against all supported PHP versions as an early detection system for problems in the Phar extension/Phar building script. - Uploads both phars as build against PHP 7.4. The uploaded Phars match the Phars as would be included on a release as they are build against the same PHP version as used for releases. These Phars will now also be available for PRs and merges to `master` to allow for easier testing of change proposals by issue reporters who may not have a git clone of the repo. The uploaded Phars will be available for 28 days (default 90). - Does a cursory test with both the `phpcs.phar` as well as the `phpcbf.phar` to test that the build phar files are functional. * In the `test` job, which now depends on the `build` job, the Phar will now no longer be build, but the Phar as uploaded in the `build` job - i.e. the Phar build against the same PHP version as used when releasing Phars - is downloaded and used to run the Phar test. The uploaded Phar files can be found on the "Summary" page of the `test` workflow after the build has finished for each build run.
- Loading branch information