Cleanup readme and add workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OS: Linux; Symfony: latest stable; PHP: all the commonly used versions supported by this bundle | |
name: "Tests" | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
env: | |
fail-fast: true | |
jobs: | |
tests: | |
name: "PHP ${{ matrix.php-version }}" | |
runs-on: 'ubuntu-latest' | |
continue-on-error: false | |
strategy: | |
matrix: | |
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3'] | |
steps: | |
- name: 'Checkout code' | |
uses: actions/checkout@v3 | |
- name: 'Install PHP with extensions' | |
uses: shivammathur/[email protected] | |
with: | |
coverage: none | |
php-version: ${{ matrix.php-version }} | |
tools: composer:v2 | |
extensions: mbstring, intl | |
ini-values: date.timezone=UTC | |
- name: 'Install project dependencies' | |
run: | | |
composer global config --no-plugins allow-plugins.symfony/flex true | |
composer global require --no-progress --no-scripts --no-plugins symfony/flex | |
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable | |
vendor/bin/simple-phpunit install | |
- name: 'Run tests' | |
env: | |
SYMFONY_DEPRECATIONS_HELPER: 'max[indirect]=10&max[total]=27' | |
run: vendor/bin/simple-phpunit -v |