Skip to content

feat: Update Github actions #23

feat: Update Github actions

feat: Update Github actions #23

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
php: [ '8.1', '8.2', '8.3']
sf_version: [ '5.4.*', '6.4.*', '7.1.*' ]
exclude:
- php: 8.1
sf_version: 7.1.*
steps:
- uses: actions/checkout@v2
- name: Validate composer.json
run: composer validate --strict
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
run: php -v
- name: Install symfony/flex
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex
- name: Composer update on php ${{ matrix.php }} and symfony ${{ matrix.sf_version }}
run: export SYMFONY_REQUIRE=${{ matrix.sf_version }} composer update --prefer-dist --no-progress
- uses: php-actions/phpunit@v3
with:
configuration: phpunit.xml.dist
php_version: ${{ matrix.php }}
memory_limit: 1024M
version: 9
bootstrap: vendor/autoload.php