Skip to content

Commit

Permalink
minor #2594 [CI] Run tests on minimum-stability=dev too (Kocal)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

[CI] Run tests on minimum-stability=dev too

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Issues        | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - For new features, provide some code snippets to help understand usage.
 - Features and deprecations must be submitted against branch main.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
 - Never break backward compatibility (see https://symfony.com/bc).
-->

UX packages are a bit "on the edge" (especially TwigComponent and LiveComponent) and it could be a good idea to ensure they continue to works with nighly dependencies. It will help us to fix compatibility issues ASAP.

Commits
-------

4079310 [CI] Run tests on minimum-stability=dev too
  • Loading branch information
Kocal committed Feb 23, 2025
2 parents a282ed5 + 4079310 commit 32224c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
fail-fast: false
matrix:
php-version: ['8.1', '8.3', '8.4']
minimum-stability: ['stable', 'dev']
include:
- php-version: '8.1'
dependency-version: 'lowest'
Expand All @@ -77,6 +78,10 @@ jobs:
dependency-version: 'highest'
component: ${{ fromJson(needs.tests-php-components.outputs.components )}}
exclude:
- php-version: '8.1'
minimum-stability: 'dev'
- php-version: '8.3'
minimum-stability: 'dev'
- component: Map # does not support PHP 8.1
php-version: '8.1'
- component: Map/src/Bridge/Google # does not support PHP 8.1
Expand Down Expand Up @@ -104,6 +109,11 @@ jobs:
run: php .github/build-packages.php
working-directory: ${{ github.workspace }}

- name: Configure ${{ matrix.minimum-stability }} stability
if: ${{ matrix.minimum-stability }}
run: composer config minimum-stability ${{ matrix.minimum-stability }}
working-directory: "src/${{ matrix.component }}"

- name: Install ${{ matrix.component }} packages
uses: ramsey/composer-install@v3
with:
Expand Down

0 comments on commit 32224c4

Please sign in to comment.