Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: conditionally install flex #7412

Merged
merged 6 commits into from
Nov 3, 2023
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,27 @@
- name: Checkout code
uses: actions/checkout@v3

- name: Get code coverage driver
- name: Resolve PHP coverage flag
uses: actions/github-script@v6
id: code-coverage-driver
id: setup-php-resolve-coverage
with:
script: 'return "${{ matrix.code-coverage }}" == "yes" ? "pcov" : "none"'
result-encoding: string

- name: Resolve PHP tools flag
uses: actions/github-script@v6
id: setup-php-resolve-tools
with:
script: 'return "${{ matrix.execute-flex-with-symfony-version }}" ? "flex" : "none"'
result-encoding: string

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: none, curl, dom, json, mbstring, opcache, simplexml, tokenizer, xml, xmlwriter, zip
keradus marked this conversation as resolved.
Show resolved Hide resolved
coverage: ${{ steps.code-coverage-driver.outputs.result }}
tools: flex
coverage: ${{ steps.setup-php-resolve-coverage.outputs.result }}
tools: composer, ${{ steps.setup-php-resolve-tools.outputs.result }}

- name: Get Composer cache directory
id: composer-cache
Expand Down Expand Up @@ -180,7 +187,7 @@
max_attempts: 5
retry_wait_seconds: 30
command: |
composer update --optimize-autoloader --no-interaction --no-progress --no-scripts ${{ matrix.composer-flags }} # --no-scripts to avoid installing dev-tools for all jobs on CI level

Check warning on line 190 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / Validate YAML

190:181 [line-length] line too long (192 > 180 characters)
composer info -D

# execute migration rules before running tests and self-fixing,
Expand Down