Skip to content

chore: 🤖 Bump version #16

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
Mar 5, 2025
Merged
Show file tree
Hide file tree
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
48 changes: 31 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,20 @@ jobs:

strategy:
matrix:
php: ['8.0', 8.1, 8.2]
lib:
- { laravel: ^11.0 }
- { laravel: ^10.0 }
- { laravel: ^9.0 }
php: [8.2, 8.3, 8.4]
laravel: [^11.0, ^12.0, ^13.0.x-dev]
exclude:
- { php: 8.0, lib: { laravel: ^10.0 } }
- { php: 8.0, lib: { laravel: ^11.0 } }
- { php: 8.1, lib: { laravel: ^11.0 } }
- php: 8.2
laravel: ^13.0.x-dev
include:
- { lib: { laravel: ^9.0 }, phpstan: 1 }
- { lib: { laravel: ^10.0 }, phpstan: 1 }
- php: 8.2
php-cs-fixer: 1
- php: 8.3
php-cs-fixer: 1
- laravel: ^11.0
larastan: 1
- laravel: ^12.0
larastan: 1

steps:
- uses: actions/checkout@v3
Expand All @@ -46,27 +48,39 @@ jobs:
php-version: ${{ matrix.php }}
coverage: xdebug

- name: Remove impossible dependencies
if: ${{ matrix.phpstan != 1 }}
- name: Remove impossible dependencies (nunomaduro/larastan)
if: ${{ matrix.larastan != 1 }}
run: composer remove nunomaduro/larastan --dev --no-update

- name: Remove impossible dependencies (friendsofphp/php-cs-fixer)
if: ${{ matrix.php-cs-fixer != 1 }}
run: composer remove friendsofphp/php-cs-fixer --dev --no-update

- name: Adjust Package Versions
run: |
composer require "laravel/framework:${{ matrix.lib.laravel }}" --dev
composer require "laravel/framework:${{ matrix.laravel }}" --dev --no-update
composer update

- name: Prepare Coverage Directory
run: mkdir -p build/logs

- name: PHP-CS-Fixer
if: ${{ matrix.php-cs-fixer == 1 }}
run: composer cs

- name: PHPStan
if: ${{ matrix.phpstan == 1 }}
if: ${{ matrix.larastan == 1 }}
run: composer phpstan

- run: mkdir -p build/logs
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: Test
run: composer test -- --testdox --coverage-clover build/logs/clover.xml

- name: Upload Coverage
uses: nick-invision/retry@v2
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: 'true'
COVERALLS_FLAG_NAME: 'laravel:${{ matrix.lib.laravel }}'
COVERALLS_FLAG_NAME: "laravel:${{ matrix.laravel }} php:${{ matrix.php }}"
with:
timeout_minutes: 1
max_attempts: 3
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ composer.lock
/.idea/
/vendor/
/build/logs/
.php_cs.cache
.php-cs-fixer.cache
/.phpunit.cache/
90 changes: 90 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?php

declare(strict_types=1);

use PhpCsFixer\Config;
use PhpCsFixer\Finder;

return (new Config())
->setFinder(
(new Finder())
->in([
__DIR__ . '/src',
__DIR__ . '/phpstan',
__DIR__ . '/tests',
]),
)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'@PSR12' => true,
'@PHPUnit84Migration:risky' => true,
'blank_line_before_statement' => [
'statements' => [
'break',
'case',
'continue',
'declare',
'default',
'exit',
'goto',
'include',
'include_once',
'phpdoc',
'require',
'require_once',
'return',
'switch',
'throw',
'try',
],
],
'cast_spaces' => ['space' => 'none'],
'concat_space' => ['spacing' => 'one'],
'control_structure_continuation_position' => true,
'date_time_immutable' => true,
'declare_parentheses' => true,
'echo_tag_syntax' => ['format' => 'short'],
'final_internal_class' => false,
'general_phpdoc_annotation_remove' => true,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'heredoc_indentation' => false,
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
'native_constant_invocation' => false,
'native_function_invocation' => false,
'nullable_type_declaration_for_default_null_value' => true,
'php_unit_internal_class' => false,
'php_unit_method_casing' => false,
'php_unit_strict' => false,
'php_unit_test_annotation' => false,
'php_unit_test_case_static_method_calls' => ['call_type' => 'this'],
'php_unit_test_class_requires_covers' => false,
'phpdoc_line_span' => true,
'phpdoc_separation' => false,
'phpdoc_summary' => false,
'phpdoc_to_comment' => ['ignored_tags' => ['noinspection']],
'phpdoc_types_order' => false,
'regular_callable_call' => true,
'simplified_if_return' => true,
'simplified_null_return' => true,
'single_line_throw' => false,
'trailing_comma_in_multiline' => [
'elements' => ['arrays', 'arguments', 'parameters'],
],
'types_spaces' => false,
'use_arrow_functions' => false,
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
])
->setRiskyAllowed(true);
47 changes: 0 additions & 47 deletions .scrutinizer.yml

This file was deleted.

11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Laravel MySQL System Variable Manager<br>[![Build Status](https://github.com/mpyw/laravel-mysql-system-variable-manager/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/mpyw/laravel-mysql-system-variable-manager/actions) [![Coverage Status](https://coveralls.io/repos/github/mpyw/laravel-mysql-system-variable-manager/badge.svg?branch=migrate-ci)](https://coveralls.io/github/mpyw/laravel-mysql-system-variable-manager?branch=migrate-ci) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mpyw/laravel-mysql-system-variable-manager/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mpyw/laravel-mysql-system-variable-manager/?branch=master)
# Laravel MySQL System Variable Manager<br>[![Build Status](https://github.com/mpyw/laravel-mysql-system-variable-manager/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/mpyw/laravel-mysql-system-variable-manager/actions) [![Coverage Status](https://coveralls.io/repos/github/mpyw/laravel-mysql-system-variable-manager/badge.svg?branch=migrate-ci)](https://coveralls.io/github/mpyw/laravel-mysql-system-variable-manager?branch=migrate-ci)

A tiny extension of `MySqlConnection` that manages **session** system variables

## Requirements

| Package | Version | Mandatory |
|:--------|:--------------------------------------|:---------:|
| PHP | <code>^8.0</code> | ✅ |
| Laravel | <code>^9.0 &#124;&#124; ^10.0 </code> | ✅ |
| PHPStan | <code>&gt;=1.1</code> | |
| PHP | <code>^8.2</code> | ✅ |
| Laravel | <code>^11.0 &#124;&#124; ^12.0</code> | ✅ |
| PHPStan | <code>&gt;=2.0</code> | |

> [!NOTE]
> Older versions have outdated dependency requirements. If you cannot prepare the latest environment, please refer to past releases.

## Installing

Expand Down
Loading