forked from itakademy/laminas-bugsnag
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allowing error level to be configured, defaults to php error_reporting (
#110) * Allowing error level to be configured, defaults to php error_reporting * bumping phpstan to current minimum * bumping laminas stdlib * trying lower version of stdlib * stdlib test * php 8.3, minimum php 8.1 * bumping versions in build.yml
- Loading branch information
Showing
6 changed files
with
90 additions
and
4,241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
name: PHP ${{ matrix.php-versions }} ${{ matrix.composer-args }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ['7.4', '8.0', '8.1'] | ||
composer-args: ['', '--prefer-lowest'] | ||
runs-on: ${{ matrix.operating-system }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@2.21.2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mbstring | ||
coverage: pcov | ||
tools: cs2pr | ||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
- name: Install Dependencies | ||
run: | | ||
composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader ${{ matrix.composer-args }} | ||
- name: PHPStan | ||
run: composer phpstan | ||
- name: Code Style Check | ||
env: | ||
PHP_CS_FIXER_IGNORE_ENV: true | ||
run: composer style-check -- --format=checkstyle | cs2pr | ||
build: | ||
name: PHP ${{ matrix.php-versions }} ${{ matrix.composer-args }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ["8.1", "8.2", "8.3"] | ||
composer-args: ["", "--prefer-lowest"] | ||
runs-on: ${{ matrix.operating-system }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@2.31.0 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mbstring | ||
coverage: pcov | ||
tools: cs2pr | ||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
- name: Install Dependencies | ||
run: | | ||
composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader ${{ matrix.composer-args }} | ||
- name: PHPStan | ||
run: composer phpstan | ||
- name: Code Style Check | ||
env: | ||
PHP_CS_FIXER_IGNORE_ENV: true | ||
run: composer style-check -- --format=checkstyle | cs2pr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
composer.phar | ||
vendor/ | ||
.php-cs-fixer.cache | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
{ | ||
"name": "diablomedia/laminas-bugsnag", | ||
"description": "Bugsnag Notifier for Laminas", | ||
"license": "MIT", | ||
"keywords": [ | ||
"Laminas", | ||
"Error Handling", | ||
"Bugsnag" | ||
], | ||
"require": { | ||
"php": "^7.4 || ~8.0.0 || ~8.1.0", | ||
"bugsnag/bugsnag": "^3.23.1", | ||
"laminas/laminas-mvc": "^3.3", | ||
"laminas/laminas-servicemanager": "^3.10", | ||
"laminas/laminas-stdlib": "^3.7", | ||
"psr/container": "^1.0.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"LaminasBugsnag\\": "src/" | ||
} | ||
}, | ||
"require-dev": { | ||
"friendsofphp/php-cs-fixer": "^3.7", | ||
"maglnet/composer-require-checker": "^3.0 || ^4.0", | ||
"phpstan/phpstan": "^1.4" | ||
}, | ||
"scripts": { | ||
"phpstan": "phpstan analyze -c phpstan.neon --no-progress --ansi", | ||
"style-check": "php-cs-fixer fix --dry-run -vv" | ||
"name": "diablomedia/laminas-bugsnag", | ||
"description": "Bugsnag Notifier for Laminas", | ||
"license": "MIT", | ||
"keywords": [ | ||
"Laminas", | ||
"Error Handling", | ||
"Bugsnag" | ||
], | ||
"require": { | ||
"php": "~8.1.0 || ~8.2.0 || ~8.3.0", | ||
"bugsnag/bugsnag": "^3.23.1", | ||
"laminas/laminas-mvc": "^3.3", | ||
"laminas/laminas-servicemanager": "^3.10", | ||
"laminas/laminas-stdlib": "^3.18.0", | ||
"psr/container": "^1.0.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"LaminasBugsnag\\": "src/" | ||
} | ||
}, | ||
"require-dev": { | ||
"friendsofphp/php-cs-fixer": "^3.7", | ||
"maglnet/composer-require-checker": "^3.0 || ^4.0", | ||
"phpstan/phpstan": "^1.12.6" | ||
}, | ||
"scripts": { | ||
"phpstan": "phpstan analyze -c phpstan.neon --no-progress --ansi", | ||
"style-check": "php-cs-fixer fix --dry-run -vv" | ||
} | ||
} |
Oops, something went wrong.