Skip to content

Commit

Permalink
Dependency fixes for GH Actions builds
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Oct 29, 2021
1 parent 8c8bfd4 commit fea537e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
run: "composer remove --dev symfony/* laravel/* --no-update --no-interaction"
- name: "Require framework ${{ matrix.laravel-version}}"
run: "composer require laravel/framework:${{ matrix.laravel-version}} --no-update --no-interaction --prefer-dist --prefer-stable"
- name: "Require Guzzle 6 ${{ matrix.lumen-version}}"
if: ${{ matrix.php-version == '7.1' || matrix.php-version == '7.2' }}
run: "composer require --dev php-http/guzzle6-adapter --no-update --no-interaction --prefer-dist --prefer-stable"
- name: "Composer update with new requirements"
run: "composer update --no-interaction --prefer-dist --prefer-stable"
- name: "Run PHPUnit (Laravel) test suite"
Expand Down Expand Up @@ -92,7 +95,11 @@ jobs:
- name: "Add scout-apm-php as a repository"
run: cd test-app && composer config repositories.scout path ../scout-apm-php
- name: "Require scout-apm-php current checkout"
run: cd test-app && composer require scoutapp/scout-apm-php:*@dev composer/package-versions-deprecated
if: ${{ matrix.php-version != '7.1' && matrix.php-version != '7.2' }}
run: cd test-app && composer require scoutapp/scout-apm-php:*@dev guzzlehttp/guzzle composer/package-versions-deprecated
- name: "Require scout-apm-php current checkout (PHP 7.1/7.2)"
if: ${{ matrix.php-version == '7.1' || matrix.php-version == '7.2' }}
run: cd test-app && composer require scoutapp/scout-apm-php:*@dev php-http/guzzle6-adapter nyholm/psr7 composer/package-versions-deprecated
- name: "Publish the provider"
run: cd test-app && php artisan vendor:publish --provider="Scoutapm\Laravel\Providers\ScoutApmServiceProvider"
- name: "Configure Scout"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/lumen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
run: "composer remove --dev symfony/* laravel/* --no-update --no-interaction"
- name: "Require framework ${{ matrix.lumen-version}}"
run: "composer require laravel/lumen:${{ matrix.lumen-version}} --no-update --no-interaction --prefer-dist --prefer-stable"
- name: "Require Guzzle 6 ${{ matrix.lumen-version}}"
if: ${{ matrix.php-version == '7.1' || matrix.php-version == '7.2' }}
run: "composer require --dev php-http/guzzle6-adapter --no-update --no-interaction --prefer-dist --prefer-stable"
- name: "Composer update with new requirements"
run: "composer update --no-interaction --prefer-dist --prefer-stable"
- name: "Run PHPUnit (Lumen) test suite"
Expand Down Expand Up @@ -98,7 +101,11 @@ jobs:
- name: "Add scout-apm-php as a repository"
run: cd test-app && composer config repositories.scout path ../scout-apm-php
- name: "Require scout-apm-php current checkout"
run: cd test-app && composer require scoutapp/scout-apm-php:*@dev composer/package-versions-deprecated
if: ${{ matrix.php-version != '7.1' && matrix.php-version != '7.2' }}
run: cd test-app && composer require scoutapp/scout-apm-php:*@dev guzzlehttp/guzzle composer/package-versions-deprecated
- name: "Require scout-apm-php current checkout (PHP 7.1/7.2)"
if: ${{ matrix.php-version == '7.1' || matrix.php-version == '7.2' }}
run: cd test-app && composer require scoutapp/scout-apm-php:*@dev php-http/guzzle6-adapter nyholm/psr7 composer/package-versions-deprecated
- name: "Configure the application"
run: cd test-app && cp ../scout-apm-php/.github/fixtures/lumen-app.php bootstrap/app.php
- name: "Configure Scout"
Expand Down

0 comments on commit fea537e

Please sign in to comment.