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

Use GitHub actions for CI #152

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

hansott
Copy link
Contributor

@hansott hansott commented Dec 19, 2020

Reasoning:
https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
https://blog.travis-ci.com/oss-announcement

Inspired by
https://github.com/Roave/BetterReflection

I'm opening this PR to start a discussion, let me know if you want to proceed with this and what changes need to be made.

Some questions:

  • Do people still use Scrutinizer? Do we still want to support code coverage?
  • Which PHP version(s) should be tested by default?

Some links to existing CI jobs of the PHP league:

Copy link
Member

@colinodell colinodell left a comment

Choose a reason for hiding this comment

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

Adding my $0.02, others might have differing opinions :)

Comment on lines 37 to 44
- name: "Cache dependencies"
uses: "actions/cache@v2"
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
Copy link
Member

Choose a reason for hiding this comment

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

Composer 2 without caching installs dependencies faster than either version of Composer with caching 😉 I recommend removing this and adding tools: composer:v2 to the "Install PHP" step (and doing this across all the workflows)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See 66a5b43

dependencies:
- "locked"
php-version:
- "7.4"
Copy link
Member

Choose a reason for hiding this comment

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

Can we include all currently-supported versions of PHP?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See bab279c

hansott added a commit to journy-io/php-sdk that referenced this pull request Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants