From 585d3da89cdc6ff198664d6d0e70cfc1e90286f3 Mon Sep 17 00:00:00 2001 From: Uladzimir Tsykun Date: Sat, 18 Nov 2023 19:03:33 +0100 Subject: [PATCH] Run test against php 8.3 --- .github/workflows/run_tests.yml | 29 ++++++++++++++++++----------- composer.json | 2 +- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 2b2f95d3..4ca92d59 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -6,6 +6,7 @@ on: - 'src/**' - 'tests/**' - 'templates/**' + - 'config/**' branches: - master pull_request: @@ -19,9 +20,17 @@ env: jobs: tests: - name: "Tests" + strategy: + fail-fast: false + matrix: + include: + - php: '8.1' + redis: '6' + - php: '8.3' + redis: '7' + name: PHP ${{ matrix.php }} runs-on: ubuntu-20.04 - + steps: - name: "Checkout" uses: "actions/checkout@v3" @@ -30,19 +39,17 @@ jobs: uses: "shivammathur/setup-php@v2" with: coverage: "none" - extensions: "intl, zip, redis" - php-version: "8.1" + extensions: "curl, mbstring, pdo, pdo_sqlite, sqlite, zip, redis" + php-version: ${{ matrix.php }} tools: composer - + - name: "Install dependencies" - uses: "ramsey/composer-install@v2" - with: - composer-options: "--ansi --no-interaction" - + run: composer update --ansi --no-interaction + - name: Start Redis uses: "supercharge/redis-github-action@1.6.0" with: - redis-version: 6 - + redis-version: ${{ matrix.redis }} + - name: "Run tests" run: "composer tests" diff --git a/composer.json b/composer.json index 70d7059d..f9a70f4e 100644 --- a/composer.json +++ b/composer.json @@ -82,7 +82,7 @@ "symfony/yaml": "^6.3", "twig/extra-bundle": "^3.4", "twig/string-extra": "^3.4", - "twig/twig": "^2.0|^3.0" + "twig/twig": "^3.0" }, "require-dev": { "phpunit/phpunit": "^10.0",