Skip to content

Fixed required minimum stability causing the CI tests to fail #143

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

Merged
merged 1 commit into from
Feb 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 8 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,16 @@ jobs:
run: composer create-project laravel/laravel rollbar-test-app ${{ matrix.laravel }}

- name: Install that code using Composer rigged to look in the parent directory
id: composer_require
working-directory: rollbar-test-app
continue-on-error: true
# We arbitrarily set the version to 1.0.0, because we just need composer
# to consider it to be stable.
run: |
composer config repositories.local '{"type":"path", "url":".."}'
composer require rollbar/rollbar-laravel

- name: Try to resolve requirements into an installable set of packages
working-directory: rollbar-test-app
# This adds time, so only run this if the previous step fails.
if: ${{ steps.composer_require.outcome == 'failure' }}
# We are ok removing the lock file since it was generated in step 3,
# before we included all our requirements.
run: |
rm composer.lock
composer require rollbar/rollbar-laravel
composer install
composer config repositories.local '{
"type":"path",
"url":"..",
"options": {"versions": {"rollbar/rollbar-laravel": "1.0.0"}}
}'
composer require rollbar/rollbar-laravel -W

- name: Setup .env
working-directory: rollbar-test-app
Expand Down