Skip to content

Merge pull request #3 from andanteproject/develop #31

Merge pull request #3 from andanteproject/develop

Merge pull request #3 from andanteproject/develop #31

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:
runs-on: ubuntu-latest
strategy:
matrix:
name:
- 'PHP 8.0 tests (Symfony 5.4)'
- 'PHP 8.1 tests (Symfony 6.2)'
- 'PHP 8.1 tests (Symfony 6.3)'
include:
- php: '8.0'
symfony: 5.4.*
- php: '8.1'
symfony: 6.2.*
- php: '8.1'
symfony: 6.3.*
name: ${{ matrix.name }}
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 }}
- run: |
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "${{ matrix.symfony }}"/' composer.json;
if: matrix.symfony
- run: composer update --no-interaction --no-progress --ansi
- run: composer phpunit