Skip to content

Use GitHub actions for CI#152

Open
hansott wants to merge 6 commits intothephpleague:masterfrom
hansott:master
Open

Use GitHub actions for CI#152
hansott wants to merge 6 commits intothephpleague:masterfrom
hansott:master

Conversation

@hansott
Copy link
Copy Markdown
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
Copy Markdown
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 thread .github/workflows/coding-standards.yml Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants