Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions for testing, and automatic phar creation #46

Merged
merged 3 commits into from
Mar 27, 2021
Merged

GitHub Actions for testing, and automatic phar creation #46

merged 3 commits into from
Mar 27, 2021

Conversation

roelofr
Copy link

@roelofr roelofr commented Jan 18, 2021

Depends on #45, test results are available at roelofr:#1, which merge into that master branch.

I'm still seeing errors on this branch, very wierd ones at that:

Fatal error: Interface 'JsonSerializable' not found in /home/runner/work/php-parallel-lint/php-parallel-lint/src/Error.php on line 4

I don't know why, but the Json class seems unavailable, although the json extension is enabled.

On PHP 8.0 I even saw Fatal error: Uncaught Error: Call to undefined function token_get_all(), which is a built-in and should always work.

Some wierd stuff going on here... 🤔

Will close #44.

.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
@roelofr
Copy link
Author

roelofr commented Jan 19, 2021

Thanks for the review, I've been recycling the same build file over and over, it's time to freshen it up 😃

@deatharse
Copy link

Would like to suggest a step after generating the phar file to test it before uploading as an asset. Checking the return code of -h as a minimum.

#42 Highlights current issues building the phar file, but successful compilation of the phar does not guarantee a usable phar file.

@jrfnl
Copy link
Collaborator

jrfnl commented Feb 22, 2021

@alasdairdc Good idea. Could be as simple as using the phar to run parallel-lint over the repo code, I suppose.

@deatharse
Copy link

@jrfnl That would work.

src/ConsoleWriter.php Outdated Show resolved Hide resolved
src/Exception.php Outdated Show resolved Hide resolved
src/RunTimeException.php Outdated Show resolved Hide resolved
src/SyntaxError.php Outdated Show resolved Hide resolved
@jrfnl
Copy link
Collaborator

jrfnl commented Mar 20, 2021

As there are a couple of open PRs, it would be great to get CI running again, as, knowing how many projects use this package, it is kind of irresponsible to merge functional changes without it.

With that in mind, I think the order of PRs needs to be changed and the GH Actions part of this PR needs to be merged before #45 can be. /cc @grogy

@roelofr Do you have time to continue work on this ? If not, I'd be happy to continue where you left off and get an initial GH Actions workflow up & running ready for merge.

@grogy
Copy link
Member

grogy commented Mar 21, 2021

What about cherry-pick part of .github/workflows/test.yml to master? Phar release and next changes will be checked with GH Actions and will be safe. @jrfnl

@roelofr
Copy link
Author

roelofr commented Mar 21, 2021

I updated the codebase to test the phar on all versions, but compile it on php 5.4.

I'm still having an issue with the unit tests but other than that, all checks are executed.

@glensc
Copy link

glensc commented Mar 21, 2021

I'm still having an issue with the unit tests but other than that, all checks are executed.

you are missing ext-tokenizer add tokenizer to this line:

https://github.com/roelofr/php-parallel-lint/blob/0b58fde087c4aa7ed9271d8f7d763d1c022740a6/.github/workflows/release.yml#L21

@roelofr
Copy link
Author

roelofr commented Mar 21, 2021

Thanks! That did it

@roelofr roelofr marked this pull request as ready for review March 21, 2021 23:48
@roelofr roelofr mentioned this pull request Mar 22, 2021
@grogy
Copy link
Member

grogy commented Mar 27, 2021

Great, now it look's complete. Thank you @roelofr and reviewers @glensc and @jrfnl

@grogy grogy merged commit 4406192 into php-parallel-lint:master Mar 27, 2021
@jrfnl
Copy link
Collaborator

jrfnl commented Mar 28, 2021

Sorry, I never got round to doing a review of the updated workflow.

I've just looked at it now and most of the test runs have disappeared somewhere along the way. I will send in a PR to fix this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Switch to using GH Actions ?
5 participants