Skip to content

Bump symfony/process from 5.4.36 to 5.4.46 #480

Bump symfony/process from 5.4.36 to 5.4.46

Bump symfony/process from 5.4.36 to 5.4.46 #480

Workflow file for this run

name: "Tests"
on: [push]
jobs:
run-tests-php:
name: PHP ${{ matrix.php-versions }} with Phalcon ${{ matrix.phalcon-versions }}
runs-on: ubuntu-latest
env:
extensions: mbstring, intl, json, phalcon-${{ matrix.phalcon-versions }}, mysql, pgsql
key: cache-v4.0~13.04.2024
services:
mysql:
image: mysql:8.0
env:
MYSQL_DATABASE: phalcon-migrations
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
postgres:
image: postgres:10.8
ports:
- "5432:5432"
options: --health-cmd pg_isready --health-interval 5s --health-timeout 5s --health-retries 2
strategy:
fail-fast: false
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
phalcon-versions: ['5.5.0', '5.6.0', '5.6.1', '5.6.2']
steps:
- uses: actions/checkout@v4
- name: Setup cache environment
id: cache-env
uses: shivammathur/cache-extensions@v1
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.extensions }}
key: ${{ env.key }}
- name: Cache extensions
uses: actions/cache@v1
with:
path: ${{ steps.cache-env.outputs.dir }}
key: ${{ steps.cache-env.outputs.key }}
restore-keys: ${{ steps.cache-env.outputs.key }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.extensions }}
tools: pecl
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- run: composer install --prefer-dist --no-suggest
- name: Copy .env file
run: cp tests/.env.example tests/.env
- name: Run test suites
env:
MYSQL_TEST_DB_PORT: ${{ job.services.mysql.ports['3306'] }}
POSTGRES_TEST_DB_PORT: ${{ job.services.postgres.ports['5432'] }}
if: success()
run: vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php-versions }}.xml
- name: Upload coverage to Codecov
if: success()
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./tests/_output/coverage-*.xml