Skip to content

Commit

Permalink
Support Symfony 7.0 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Dec 2, 2023
1 parent b38233a commit 37969f3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ jobs:
fail-fast: false
matrix:
redis: ['6']
driver: ['sqlite']
include:
- php: '8.1'
# - php: '8.2'
# redis: '7'
# driver: 'mysql'
- php: '8.3'
redis: '7'
symfony: '7.0.*'
name: PHP ${{ matrix.php }} SYMFONY ${{ matrix.symfony }}
name: PHP ${{ matrix.php }} SYMFONY ${{ matrix.symfony }} - ${{ matrix.driver }}
runs-on: ubuntu-20.04

steps:
Expand All @@ -42,15 +43,20 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "curl, pdo, pdo_sqlite, sqlite, zip, redis"
extensions: "curl, pdo, pdo_sqlite, pdo_mysql, pdo_pgsql, sqlite, zip, redis"
php-version: ${{ matrix.php }}
tools: composer

- name: "Install dependencies"
run: |
set -x
if [[ ! -z "${{ matrix.symfony }}" ]]; then
export SYMFONY_REQUIRE="${{ matrix.symfony }}"
echo "Install for $SYMFONY_REQUIRE"
# temporary workaround to support Symfony 7.0 in tests.
composer config --global --auth http-basic.demo.packeton.org token ${{ secrets.PACKETON_TOKEN }}
composer config repositories.sf7 composer https://demo.packeton.org/sf7

composer update --ansi --no-interaction
else
composer install --ansi --no-interaction
Expand Down

0 comments on commit 37969f3

Please sign in to comment.