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

Added GitHub Actions for testing #20

Merged
merged 1 commit into from
Feb 4, 2022
Merged

Added GitHub Actions for testing #20

merged 1 commit into from
Feb 4, 2022

Conversation

grogy
Copy link
Member

@grogy grogy commented Jan 28, 2022

It replaced unused TravisCI. I inspired in PHP-Parallel-Lin from @jrfnl

Fixes #19

Copy link
Collaborator

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grogy Nicely done.

I've left a couple of suggestions inline.

I'd also like to suggest adding the following to cancel older builds for the same branch when a new commit has been pushed:

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
  # The concurrency group contains the workflow name and the branch name.
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

.github/workflows/test.yml Outdated Show resolved Hide resolved
- '7.1'
- '7.2'
- '7.3'
- '7.4'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about adding PHP 8.0, 8.1 and 8.2 ?

For PHP 8.2, you could then change the continue-on-error: ${{ matrix.experimental == true }} setting to: continue-on-error: ${{ matrix.php == '8.2' }} to allow builds against PHP 8.2 to fail while it is still under development.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP 8.x will be added in next step. I want convert 1:1 state previous TravisCI state

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair enough. I'm actually tempted to suggest abandoning this repo in favour of a PHP_CodeSniffer sniff for the same at some point in the future. Should make PHP cross-version support easier ;-)

.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
@grogy grogy force-pushed the github-actions branch 5 times, most recently from 6c43c0b to 573db39 Compare February 4, 2022 11:10
@grogy
Copy link
Member Author

grogy commented Feb 4, 2022

Please, can you review fixes?

Copy link
Collaborator

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two questions left, but other than that, A-okay!

.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
- '7.1'
- '7.2'
- '7.3'
- '7.4'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair enough. I'm actually tempted to suggest abandoning this repo in favour of a PHP_CodeSniffer sniff for the same at some point in the future. Should make PHP cross-version support easier ;-)

It replaced unused TravisCI.
@jrfnl jrfnl merged commit fb0bf7f into master Feb 4, 2022
@jrfnl jrfnl deleted the github-actions branch February 4, 2022 15:41
@jrfnl
Copy link
Collaborator

jrfnl commented Feb 4, 2022

Oops, sorry, forgot to do rebase merge.....

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

Successfully merging this pull request may close these issues.

Switch from unworked Travis CI to Github Actions
2 participants