Skip to content

Commit 381d1c6

Browse files
committed
Enforce using stable dependencies
1 parent 69794cf commit 381d1c6

File tree

1 file changed

+40
-36
lines changed

1 file changed

+40
-36
lines changed

.github/workflows/tests.yml

Lines changed: 40 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ name: Tests
33
on:
44
pull_request:
55
paths:
6-
- 'config/**'
7-
- 'src/**'
8-
- 'tests/**'
9-
- '.github/workflows/tests.yml'
10-
- 'composer.json'
6+
- "config/**"
7+
- "src/**"
8+
- "tests/**"
9+
- ".github/workflows/tests.yml"
10+
- "composer.json"
1111
push:
12-
branches: ['main']
12+
branches: ["main"]
1313
paths:
14-
- 'config/**'
15-
- 'src/**'
16-
- 'tests/**'
17-
- '.github/workflows/tests.yml'
18-
- 'composer.json'
14+
- "config/**"
15+
- "src/**"
16+
- "tests/**"
17+
- ".github/workflows/tests.yml"
18+
- "composer.json"
1919
workflow_dispatch:
2020

2121
jobs:
@@ -27,7 +27,7 @@ jobs:
2727
matrix.dependencies || 'Ø',
2828
matrix.stability || 'Ø'
2929
) }}
30-
runs-on: 'ubuntu-latest'
30+
runs-on: "ubuntu-latest"
3131
env:
3232
SYMFONY_REQUIRE: ${{matrix.symfony-require}}
3333
SYMFONY_DEPRECATIONS_HELPER: weak
@@ -36,51 +36,55 @@ jobs:
3636
fail-fast: false
3737
matrix:
3838
php-version:
39-
- '8.1'
40-
- '8.2'
41-
- '8.3'
42-
- '8.4'
43-
- '8.5'
39+
- "8.1"
40+
- "8.2"
41+
- "8.3"
42+
- "8.4"
43+
- "8.5"
4444
dependencies:
45-
- 'highest'
45+
- "highest"
4646
stability:
47-
- 'stable'
47+
- "stable"
4848
symfony-require:
49-
- ''
49+
- ""
5050
include:
5151
# Test with the lowest set of dependencies
52-
- php-version: '8.1'
53-
dependencies: 'lowest'
54-
stability: 'stable'
52+
- php-version: "8.1"
53+
dependencies: "lowest"
54+
stability: "stable"
5555

5656
# Test 6.4 LTS
57-
- php-version: '8.5'
58-
symfony-require: '6.4.*'
59-
dependencies: 'highest'
57+
- php-version: "8.5"
58+
symfony-require: "6.4.*"
59+
dependencies: "highest"
6060

6161
# Test 7.4 LTS
62-
- php-version: '8.5'
63-
symfony-require: '7.4.*'
64-
dependencies: 'highest'
62+
- php-version: "8.5"
63+
symfony-require: "7.4.*"
64+
dependencies: "highest"
6565

6666
# Bleeding edge
67-
- php-version: '8.5'
68-
dependencies: 'highest'
69-
stability: 'dev'
67+
- php-version: "8.5"
68+
dependencies: "highest"
69+
stability: "dev"
7070

7171
steps:
72-
- name: 'Checkout'
73-
uses: 'actions/checkout@v6'
72+
- name: "Checkout"
73+
uses: "actions/checkout@v6"
7474
with:
7575
fetch-depth: 2
7676

77-
- name: 'Install PHP'
77+
- name: "Install PHP"
7878
uses: shivammathur/setup-php@v2
7979
with:
8080
php-version: ${{ matrix.php-version }}
81-
ini-file: 'development'
81+
ini-file: "development"
8282
tools: flex
8383

84+
- name: "Enforce using stable dependencies"
85+
run: "composer config minimum-stability stable"
86+
if: "${{ matrix.stability == 'stable' }}"
87+
8488
- name: "Install dependencies with Composer"
8589
uses: "ramsey/composer-install@v3"
8690
with:

0 commit comments

Comments
 (0)