Skip to content
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

Laravel 11.x Compatibility #21

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
58 changes: 31 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -5,38 +5,42 @@ on:
branches:
- migrate-gh-actions


jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['7.1', '7.2', '7.4']
php-versions: ['7.1', '7.2', '7.4', '8.2']

steps:
- name: Action checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer, php-config, phpunit
- name: ssh setup
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Cache dependencies
uses: actions/cache@v2
with:
path: $HOME/.composer/cache
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Composer install
run: |
composer self-update
composer install --no-interaction --prefer-dist
- name: Run scripts
run: |
vendor/bin/phpunit
vendor/bin/phpcs
- name: Action checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer, php-config, phpunit

- name: ssh setup
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Cache dependencies
uses: actions/cache@v2
with:
path: $HOME/.composer/cache
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Composer install
run: |
composer self-update
composer install --no-interaction --prefer-dist

- name: Run scripts
run: |
vendor/bin/phpunit
vendor/bin/phpcs
94 changes: 47 additions & 47 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
{
"name": "ratehub/laravel-newrelic",
"description": "A library for new relic tracking",
"type": "library",
"license": "Apache-2.0",
"authors": [
{
"name": "Lee Robert",
"email": "[email protected]"
"name": "ratehub/laravel-newrelic",
"description": "A library for new relic tracking",
"type": "library",
"license": "Apache-2.0",
"authors": [
{
"name": "Lee Robert",
"email": "[email protected]"
}
],
"suggest": {
"ext-newrelic": "This is what this package is built to use"
},
"require": {
"php": ">=7.4",
"ext-json": "*",
"illuminate/container": "^5.6|^6|^7|^8|^9|^10|^11.0",
"illuminate/log": "^5.6|^6|^7|^8|^9|^10|^11.0",
"illuminate/queue": "^5.6|^6|^7|^8|^9|^10|^11.0",
"illuminate/routing": "^5.6|^6|^7|^8|^9|^10|^11.0",
"illuminate/support": "^5.6|^6|^7|^8|^9|^10|^11.0",
"psr/log": "^3.0"
},
"autoload": {
"psr-4": {
"RateHub\\NewRelic\\": "src/RateHub/NewRelic"
}
},
"require-dev": {
"phpunit/phpunit": "^10.0",
"squizlabs/php_codesniffer": "*"
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"RateHub\\NewRelic\\Providers\\NewRelicServiceProvider"
]
}
},
"scripts": {
"cs": "./vendor/bin/phpcs",
"cbf": "./vendor/bin/phpcbf"
}
],
"suggest": {
"ext-newrelic": "This is what this package is built to use"
},
"require": {
"php": ">=7.4",
"ext-json": "*",
"illuminate/container": "^5.6|^6|^7|^8|^9|^10",
"illuminate/log": "^5.6|^6|^7|^8|^9|^10",
"illuminate/queue": "^5.6|^6|^7|^8|^9|^10",
"illuminate/routing": "^5.6|^6|^7|^8|^9|^10",
"illuminate/support": "^5.6|^6|^7|^8|^9|^10",
"psr/log": "^3.0"
},
"autoload": {
"psr-4": {
"RateHub\\NewRelic\\": "src/RateHub/NewRelic"
}
},
"require-dev": {
"phpunit/phpunit": "^10.0",
"squizlabs/php_codesniffer": "*"
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"RateHub\\NewRelic\\Providers\\NewRelicServiceProvider"
]
}
},
"scripts": {
"cs": "./vendor/bin/phpcs",
"cbf": "./vendor/bin/phpcbf"
}
}