Skip to content

Commit

Permalink
Allowing error level to be configured, defaults to php error_reporting (
Browse files Browse the repository at this point in the history
#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
jaydiablo authored Oct 15, 2024
1 parent 755c83a commit d2f83c5
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 4,241 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/build.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
composer.phar
vendor/
.php-cs-fixer.cache
composer.lock
58 changes: 29 additions & 29 deletions composer.json
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"
}
}
Loading

0 comments on commit d2f83c5

Please sign in to comment.