Skip to content

Commit

Permalink
Run test against php 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Nov 18, 2023
1 parent 7473624 commit 585d3da
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- 'src/**'
- 'tests/**'
- 'templates/**'
- 'config/**'
branches:
- master
pull_request:
Expand All @@ -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"
Expand All @@ -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/[email protected]"
with:
redis-version: 6
redis-version: ${{ matrix.redis }}

- name: "Run tests"
run: "composer tests"
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 585d3da

Please sign in to comment.