Skip to content

composer(deps): bump symfony/string from 7.1.6 to 7.1.8 #1397

composer(deps): bump symfony/string from 7.1.6 to 7.1.8

composer(deps): bump symfony/string from 7.1.6 to 7.1.8 #1397

Workflow file for this run

# https://docs.github.com/en/actions
name: "Integrate"
on: # yamllint disable-line rule:truthy
pull_request: null
push:
branches:
- "main"
jobs:
code-coverage:
name: "Code Coverage"
runs-on: "ubuntu-latest"
timeout-minutes: 5
strategy:
matrix:
php-version:
- "8.3"
dependencies:
- "locked"
env:
APP_ENV: "testing"
services:
mysql:
env:
MYSQL_DATABASE: "testing"
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: "password"
image: "mysql/mysql-server:8.0"
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-retries=3
--health-timeout=5s
ports:
- "3306:3306"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Set up PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "xdebug"
extensions: "none, ctype, curl, dom, fileinfo, iconv, intl, json, mbstring, pdo, pdo_mysql, phar, simplexml, tokenizer, xml, xmlwriter"
php-version: "${{ matrix.php-version }}"
- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
- name: "Set up problem matchers for phpunit/phpunit"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\""
- name: "Validate composer.json and composer.lock"
run: "composer validate --ansi --strict"
- name: "Determine composer cache directory"
uses: "ergebnis/.github/actions/composer/[email protected]"
- name: "Cache dependencies installed with composer"
uses: "actions/[email protected]"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ergebnis/.github/actions/composer/[email protected]"
with:
dependencies: "${{ matrix.dependencies }}"
- name: "Copy distributable environment variable configuration file"
run: "cp -n .env.example .env || true"
- name: "Generate application key"
run: "./artisan key:generate --ansi"
- name: "Show application information"
run: "./artisan about --ansi"
- name: "Run migrations"
run: "./artisan migrate:fresh --ansi"
- name: "Collect code coverage with Xdebug and phpunit/phpunit"
env:
XDEBUG_MODE: "coverage"
run: "vendor/bin/phpunit --colors=always --configuration=phpunit.xml --coverage-clover=.build/phpunit/logs/clover.xml"
- name: "Send code coverage report to codecov.io"
uses: "codecov/[email protected]"
with:
files: ".build/phpunit/logs/clover.xml"
token: "${{ secrets.CODECOV_TOKEN }}"
coding-standards:
name: "Coding Standards"
runs-on: "ubuntu-latest"
timeout-minutes: 5
strategy:
matrix:
php-version:
- "8.3"
dependencies:
- "locked"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Lint YAML files"
uses: "ibiqlik/[email protected]"
with:
config_file: ".yamllint.yaml"
file_or_dir: "."
strict: true
- name: "Set up PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
extensions: "none, ctype, curl, dom, fileinfo, iconv, intl, json, mbstring, pdo, pdo_mysql, phar, simplexml, tokenizer, xml, xmlwriter"
php-version: "${{ matrix.php-version }}"
- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
- name: "Validate composer.json and composer.lock"
run: "composer validate --ansi --strict"
- name: "Determine composer cache directory"
uses: "ergebnis/.github/actions/composer/[email protected]"
- name: "Cache dependencies installed with composer"
uses: "actions/[email protected]"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ergebnis/.github/actions/composer/[email protected]"
with:
dependencies: "${{ matrix.dependencies }}"
- name: "Run ergebnis/composer-normalize"
run: "composer normalize --ansi --dry-run"
- name: "Cache cache directory for laravel/pint"
uses: "actions/[email protected]"
with:
path: ".build/pint/"
key: "php-${{ matrix.php-version }}-pint-${{ github.ref_name }}"
restore-keys: |
php-${{ matrix.php-version }}-pint-main
php-${{ matrix.php-version }}-pint-
- name: "Run laravel/pint"
run: "vendor/bin/pint --ansi --config=pint.json -v"
dependency-analysis:
name: "Dependency Analysis"
runs-on: "ubuntu-latest"
timeout-minutes: 5
strategy:
matrix:
php-version:
- "8.3"
dependencies:
- "locked"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Set up PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
extensions: "none, ctype, curl, dom, fileinfo, iconv, intl, json, mbstring, pdo, pdo_mysql, phar, simplexml, tokenizer, xml, xmlwriter"
php-version: "${{ matrix.php-version }}"
tools: "phive"
- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
- name: "Validate composer.json and composer.lock"
run: "composer validate --ansi --strict"
- name: "Determine composer cache directory"
uses: "ergebnis/.github/actions/composer/[email protected]"
- name: "Cache dependencies installed with composer"
uses: "actions/[email protected]"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ergebnis/.github/actions/composer/[email protected]"
with:
dependencies: "${{ matrix.dependencies }}"
- name: "Install dependencies with phive"
uses: "ergebnis/.github/actions/phive/[email protected]"
with:
trust-gpg-keys: "0x033E5F8D801A2F8D"
- name: "Run maglnet/composer-require-checker"
run: ".phive/composer-require-checker check --ansi --config-file=$(pwd)/composer-require-checker.json --verbose"
mutation-tests:
name: "Mutation Tests"
runs-on: "ubuntu-latest"
timeout-minutes: 5
strategy:
matrix:
php-version:
- "8.3"
dependencies:
- "locked"
env:
APP_ENV: "testing"
services:
mysql:
env:
MYSQL_DATABASE: "testing"
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: "password"
image: "mysql/mysql-server:8.0"
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-retries=3
--health-timeout=5s
ports:
- "3306:3306"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Set up PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "xdebug"
extensions: "none, ctype, curl, dom, fileinfo, iconv, intl, json, mbstring, pdo, pdo_mysql, phar, simplexml, tokenizer, xml, xmlwriter"
php-version: "${{ matrix.php-version }}"
- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
- name: "Validate composer.json and composer.lock"
run: "composer validate --ansi --strict"
- name: "Determine composer cache directory"
uses: "ergebnis/.github/actions/composer/[email protected]"
- name: "Cache dependencies installed with composer"
uses: "actions/[email protected]"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ergebnis/.github/actions/composer/[email protected]"
with:
dependencies: "${{ matrix.dependencies }}"
- name: "Copy distributable environment variable configuration file"
run: "cp -n .env.example .env || true"
- name: "Generate application key"
run: "./artisan key:generate --ansi"
- name: "Show application information"
run: "./artisan about --ansi"
- name: "Run migrations"
run: "./artisan migrate:fresh --ansi"
- name: "Run mutation tests with Xdebug and infection/infection"
env:
XDEBUG_MODE: "coverage"
run: "vendor/bin/infection --ansi --configuration=infection.json --logger-github"
refactoring:
name: "Refactoring"
runs-on: "ubuntu-latest"
timeout-minutes: 5
strategy:
matrix:
php-version:
- "8.3"
dependencies:
- "locked"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Set up PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
extensions: "none, ctype, curl, dom, fileinfo, iconv, intl, json, mbstring, pdo, pdo_mysql, phar, simplexml, tokenizer, xml, xmlwriter"
php-version: "${{ matrix.php-version }}"
- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
- name: "Validate composer.json and composer.lock"
run: "composer validate --ansi --strict"
- name: "Determine composer cache directory"
uses: "ergebnis/.github/actions/composer/[email protected]"
- name: "Cache dependencies installed with composer"
uses: "actions/[email protected]"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ergebnis/.github/actions/composer/[email protected]"
with:
dependencies: "${{ matrix.dependencies }}"
- name: "Cache cache directory for rector/rector"
uses: "actions/[email protected]"
with:
path: ".build/rector/"
key: "php-${{ matrix.php-version }}-rector-${{ github.ref_name }}"
restore-keys: |
php-${{ matrix.php-version }}-rector-main
php-${{ matrix.php-version }}-rector-
- name: "Run automated refactoring with rector/rector"
run: "vendor/bin/rector --ansi --config=rector.php --dry-run"
security-analysis:
name: "Security Analysis"
runs-on: "ubuntu-latest"
timeout-minutes: 5
strategy:
matrix:
php-version:
- "8.3"
dependencies:
- "locked"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Set up PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
extensions: "none, ctype, curl, dom, fileinfo, iconv, intl, json, mbstring, pdo, pdo_mysql, phar, simplexml, tokenizer, xml, xmlwriter"
php-version: "${{ matrix.php-version }}"
- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
- name: "Validate composer.json and composer.lock"
run: "composer validate --ansi --strict"
- name: "Determine composer cache directory"
uses: "ergebnis/.github/actions/composer/[email protected]"
- name: "Cache dependencies installed with composer"
uses: "actions/[email protected]"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ergebnis/.github/actions/composer/[email protected]"
with:
dependencies: "${{ matrix.dependencies }}"
- name: "Check installed packages for security vulnerability advisories"
run: "composer audit --ansi"
static-code-analysis:
name: "Static Code Analysis"
runs-on: "ubuntu-latest"
timeout-minutes: 5
strategy:
matrix:
php-version:
- "8.3"
dependencies:
- "locked"
env:
APP_ENV: "testing"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Set up PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
extensions: "none, ctype, curl, dom, fileinfo, iconv, intl, json, mbstring, opcache, pcntl, pdo, pdo_mysql, phar, posix, simplexml, tokenizer, xml, xmlwriter"
php-version: "${{ matrix.php-version }}"
- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
- name: "Validate composer.json and composer.lock"
run: "composer validate --ansi --strict"
- name: "Determine composer cache directory"
uses: "ergebnis/.github/actions/composer/[email protected]"
- name: "Cache dependencies installed with composer"
uses: "actions/[email protected]"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ergebnis/.github/actions/composer/[email protected]"
with:
dependencies: "${{ matrix.dependencies }}"
- name: "Copy distributable environment variable configuration file"
run: "cp -n .env.example .env || true"
- name: "Generate application key"
run: "./artisan key:generate --ansi"
- name: "Show application information"
run: "./artisan about --ansi"
- name: "Run vimeo/psalm"
run: "vendor/bin/psalm --config=psalm.xml --output-format=github --shepherd --show-info=false --stats --threads=4"
tests:
name: "Tests"
runs-on: "ubuntu-latest"
timeout-minutes: 5
strategy:
matrix:
php-version:
- "8.3"
dependencies:
- "locked"
env:
APP_ENV: "testing"
services:
mysql:
env:
MYSQL_DATABASE: "testing"
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: "password"
image: "mysql/mysql-server:8.0"
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-retries=3
--health-timeout=5s
ports:
- "3306:3306"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Set up PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
extensions: "none, ctype, curl, dom, fileinfo, iconv, intl, json, mbstring, pdo, pdo_mysql, phar, simplexml, tokenizer, xml, xmlwriter"
php-version: "${{ matrix.php-version }}"
- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
- name: "Set up problem matchers for phpunit/phpunit"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\""
- name: "Validate composer.json and composer.lock"
run: "composer validate --ansi --strict"
- name: "Determine composer cache directory"
uses: "ergebnis/.github/actions/composer/[email protected]"
- name: "Cache dependencies installed with composer"
uses: "actions/[email protected]"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ergebnis/.github/actions/composer/[email protected]"
with:
dependencies: "${{ matrix.dependencies }}"
- name: "Copy distributable environment variable configuration file"
run: "cp -n .env.example .env || true"
- name: "Generate application key"
run: "./artisan key:generate --ansi"
- name: "Show application information"
run: "./artisan about --ansi"
- name: "Run migrations"
run: "./artisan migrate:fresh --ansi"
- name: "Run unit tests with phpunit/phpunit"
run: "vendor/bin/phpunit --colors=always --configuration=phpunit.xml --testsuite=Unit"
- name: "Run feature tests with phpunit/phpunit"
run: "vendor/bin/phpunit --colors=always --configuration=phpunit.xml --testsuite=Feature"