Skip to content

Commit e78e550

Browse files
authored
chore(tests): add test for prefering lowest deps (#508)
1 parent f46d0f3 commit e78e550

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ jobs:
1414
php: [ "7.4", "8.0", "8.1", "8.2", "8.3" ]
1515
extensions: [""]
1616
tools: [""]
17+
composerflags: [""]
1718
include:
1819
- php: "7.4"
1920
extensions: "protobuf,grpc"
2021
tools: "pecl"
2122
- php: "8.3"
2223
extensions: "protobuf,grpc"
2324
tools: "pecl"
24-
name: "PHP ${{ matrix.php }} Unit Test ${{ matrix.extensions }}"
25+
- php: 7.4
26+
composerflags: " --prefer-lowest"
27+
name: "PHP ${{ matrix.php }} Unit Test ${{ matrix.extensions }}${{ matrix.composerflags }}"
2528
steps:
2629
- uses: actions/checkout@v4
2730
- name: Setup PHP
@@ -35,7 +38,7 @@ jobs:
3538
with:
3639
timeout_minutes: 10
3740
max_attempts: 3
38-
command: composer install
41+
command: composer update ${{ matrix.composerflags }}
3942
- name: Run script
4043
env:
4144
GOOGLE_APPLICATION_CREDENTIALS: ${{github.workspace}}/tests/Tests/Unit/testdata/json-key-file.json

0 commit comments

Comments
 (0)