Skip to content

chore: add php 8.2 to actions #49

chore: add php 8.2 to actions

chore: add php 8.2 to actions #49

Workflow file for this run

name: timestampable-bundle-CI
on:
[push, pull_request]
jobs:
phpstan:
runs-on: ubuntu-latest
name: PHPStan
steps:
- name: Checkout
uses: actions/checkout@v2
- name: composer install
run: composer install
- name: PHPStan
run: composer phpstan
env:
REQUIRE_DEV: true
cs-fixer:
runs-on: ubuntu-latest
name: PHP-CS-Fixer
steps:
- name: Checkout
uses: actions/checkout@v2
- name: composer install
run: composer install
- name: CS Check
run: composer cs-check
tests:
name: PHP ${{ matrix.php }} / SF ^${{ matrix.symfony }}
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1','8.2']
symfony: ['5.4.*', '6.2.*', '6.3.*']
exclude:
- php: '8.2'
symfony: '5.4.*'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup MySQL
run: |
sudo systemctl enable mysql.service
sudo systemctl start mysql.service
mysql -uroot -proot -h localhost -e "CREATE DATABASE test CHARACTER SET utf8 COLLATE utf8_general_ci;"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- if: matrix.symfony == '5.4.*'
run: |
sed -ri 's/"symfony\/framework-bundle": "(.+)"/"symfony\/framework-bundle": "${{ matrix.symfony }}"/' composer.json;
sed -ri 's/"symfony\/yaml": "(.+)"/"symfony\/yaml": "${{ matrix.symfony }}"/' composer.json;
- if: matrix.symfony != '5.4.*'
run: |
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "${{ matrix.symfony }}"/' composer.json;
- run: composer update --no-interaction --no-progress --ansi
- run: composer phpunit