From 6b8eee13e812d58b8ae70e571421099bfe66309b Mon Sep 17 00:00:00 2001 From: Yevgeny Tomenko Date: Wed, 11 Sep 2024 18:19:19 +0300 Subject: [PATCH] update ci settings --- .github/workflows/ci.yml | 10 +++++----- composer.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4cefc92..f8c9e29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - php-version: ['8.1', '8.2', '8.3'] + php-version: ['8.2', '8.3'] db-type: [sqlite, mysql, pgsql] prefer-lowest: [''] @@ -64,7 +64,7 @@ jobs: fi - name: Setup problem matchers for PHPUnit - if: matrix.php-version == '8.1' && matrix.db-type == 'mysql' + if: matrix.php-version == '8.2' && matrix.db-type == 'mysql' run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Run PHPUnit @@ -72,14 +72,14 @@ jobs: if [[ ${{ matrix.db-type }} == 'sqlite' ]]; then export DB_URL='sqlite:///:memory:'; fi if [[ ${{ matrix.db-type }} == 'mysql' ]]; then export DB_URL='mysql://root:root@127.0.0.1/cakephp?encoding=utf8'; fi if [[ ${{ matrix.db-type }} == 'pgsql' ]]; then export DB_URL='postgres://postgres:postgres@127.0.0.1/postgres'; fi - if [[ ${{ matrix.php-version }} == '8.1' ]]; then + if [[ ${{ matrix.php-version }} == '8.2' ]]; then export CODECOVERAGE=1 && vendor/bin/phpunit --verbose --coverage-clover=coverage.xml else vendor/bin/phpunit fi - name: Submit code coverage - if: matrix.php-version == '8.1' + if: matrix.php-version == '8.2' uses: codecov/codecov-action@v1 cs-stan: @@ -92,7 +92,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' extensions: mbstring, intl, apcu coverage: none diff --git a/composer.json b/composer.json index aa738a1..7b81802 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "test": "phpunit --stderr", "coverage-test": "phpunit --stderr --coverage-clover=clover.xml", "stan": "phpstan.phar analyse --memory-limit=-1 src/", - "stan-setup": "cp composer.json composer.backup && composer81 require --dev phpstan/phpstan:^1.9.0 psalm/phar:^5.1.0 && mv composer.backup composer.json", + "stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^1.9.0 psalm/phar:^5.1.0 && mv composer.backup composer.json", "psalm": "psalm.phar --show-info=false", "stan-rebuild-baseline": "phpstan.phar analyse ./src/ --generate-baseline", "cs-check": "phpcs -n -p ./src ./tests",