Remove manual rate limiting and fix GlobalTracer reset #31
Workflow file for this run
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
name: Tests | |
on: | |
pull_request: ~ | |
push: | |
branches: | |
- main | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php_version: | |
- '8.0' | |
- '8.1' | |
symfony_version: | |
- '4.4' | |
- '5.4' | |
- '6.0' | |
include: | |
- php_version: '8.1' | |
symfony_version: '6.1' | |
name: 'PHP ${{ matrix.php_version }} - Symfony ${{ matrix.symfony_version }}' | |
steps: | |
- uses: actions/checkout@v2 | |
- | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
coverage: none | |
# See https://github.com/actions/cache/blob/main/examples.md#php---composer | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: | | |
echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-php${{ matrix.php_version }}-symfony${{ matrix.symfony_version }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: "Install symfony/flex for SYMFONY_REQUIRE" | |
run: | | |
composer global config --no-plugins allow-plugins.symfony/flex true | |
composer global require --no-progress --no-scripts --no-plugins symfony/flex | |
- name: 'Install dependencies' | |
run: SYMFONY_REQUIRE='${{ matrix.symfony_version }}.*' composer update ${{ matrix.composer-flags }} --prefer-dist | |
- run: vendor/bin/phpstan | |
- run: vendor/bin/ecs check | |
- run: vendor/bin/phpunit |