Skip to content

Add support for Rollbar v3 #131

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 10 commits into from
Mar 21, 2022
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ jobs:
php: [8.1, 8.0, 7.4, 7.3, 7.2]
laravel: [^9, ^8, ^7, ^6]
exclude:
# Laravel 6 requires php 7.2-8.0, so exclude all php versions after 8.1
- laravel: ^6
php: 8.1
# Laravel 7 requires php 7.2-8.0, so exclude all php versions after 8.1
- laravel: ^7
php: 8.1
# Laravel 8 requires php 7.3+, so exclude all PHP versions prior to 7.3
- laravel: ^8
php: 7.2
Expand Down Expand Up @@ -62,10 +68,27 @@ 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
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

- name: Setup .env
working-directory: rollbar-test-app
run: |
echo "ROLLBAR_TOKEN=${ROLLBAR_TOKEN}" >> .env
echo "GITHUB_RUN_ID=${GITHUB_RUN_ID}" >> .env
chmod 400 .env
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/vendor
composer.lock
.DS_Store
.idea
.vscode
.phpunit.result.cache
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"require": {
"php": ">=7.2|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0",
"rollbar/rollbar": "^2"
"rollbar/rollbar": "^2.0 | ^3.1"
},
"require-dev": {
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0",
Expand Down