Skip to content

Commit

Permalink
Enhancement: Use built-in PHP 7.3 to speed up build for 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and sebastianbergmann committed Sep 9, 2019
1 parent 124d405 commit ae2417e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 43 deletions.
18 changes: 0 additions & 18 deletions .docker/php-7.3/Dockerfile

This file was deleted.

30 changes: 5 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ jobs:
uses: actions/checkout@master

- name: Run friendsofphp/php-cs-fixer
uses: docker://php:7.3-cli
with:
args: ./tools/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose
run: php7.3 ./tools/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose

type-checker:
name: Type Checker
Expand All @@ -26,25 +24,14 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Build Docker image for PHP 7.3
uses: ./.docker/php-7.3
with:
args: php -v

- name: Update dependencies with composer
uses: ./.docker/php-7.3
with:
args: composer update --no-interaction --no-ansi --no-progress --no-suggest
run: php7.3 ./tools/composer update --no-interaction --no-ansi --no-progress --no-suggest

- name: Run vimeo/psalm on public API
uses: ./.docker/php-7.3
with:
args: ./tools/psalm --config=.psalm/static-analysis.xml --no-progress --show-info=false
run: php7.3 ./tools/psalm --config=.psalm/static-analysis.xml --no-progress --show-info=false

- name: Run vimeo/psalm on internal code
uses: ./.docker/php-7.3
with:
args: ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats
run: php7.3 ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats

backward-compatibility:
name: Backward Compatibility
Expand All @@ -53,12 +40,5 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Build Docker image for PHP 7.3
uses: ./.docker/php-7.3
with:
args: php -v

- name: Run roave/backward-compatibility-check
uses: ./.docker/php-7.3
with:
args: ./tools/roave-backward-compatibility-check --from=8.3.3
run: php7.3 ./tools/roave-backward-compatibility-check --from=8.3.3

0 comments on commit ae2417e

Please sign in to comment.