Skip to content

Commit 791f2b2

Browse files
authored
chore: add prefer-lowest actions to unit test matrix (#2021)
1 parent 1486680 commit 791f2b2

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

.github/sync-repo-settings.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ branchProtectionRules:
66
isAdminEnforced: true
77
requiredStatusCheckContexts:
88
- 'PHP 5.6 Unit Test'
9+
- 'PHP 5.6 --prefer-lowest Unit Test'
910
- 'PHP 7.0 Unit Test'
1011
- 'PHP 7.1 Unit Test'
1112
- 'PHP 7.2 Unit Test'
1213
- 'PHP 7.3 Unit Test'
1314
- 'PHP 7.4 Unit Test'
1415
- 'PHP 8.0 Unit Test'
16+
- 'PHP 8.0 --prefer-lowest Unit Test'
1517
- 'PHP Style Check'
1618
- 'cla/google'
1719
requiredApprovingReviewCount: 1

.github/workflows/tests.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
name: Test Suite
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
37

48
jobs:
59
test:
6-
runs-on: ${{ matrix.operating-system }}
10+
runs-on: ubuntu-latest
711
strategy:
812
fail-fast: false
913
matrix:
10-
operating-system: [ ubuntu-latest ]
1114
php: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0" ]
12-
name: PHP ${{ matrix.php }} Unit Test
15+
composer-flags: [""]
16+
include:
17+
- php: "5.6"
18+
composer-flags: "--prefer-lowest"
19+
- php: "8.0"
20+
composer-flags: "--prefer-lowest"
21+
name: PHP ${{ matrix.php }} ${{ matrix.composer-flags }} Unit Test
1322
steps:
1423
- uses: actions/checkout@v2
1524
- name: Setup PHP
@@ -21,7 +30,10 @@ jobs:
2130
with:
2231
timeout_minutes: 10
2332
max_attempts: 3
24-
command: composer install
33+
command: composer update ${{ matrix.composer-flags }}
34+
- if: ${{ matrix.php == '8.0' || matrix.composer-flags == '--prefer-lowest' }}
35+
name: Update guzzlehttp/ringphp dependency
36+
run: composer update guzzlehttp/ringphp
2537
- if: ${{ matrix.php == '5.6' || matrix.php == '7.0' || matrix.php == '7.1' }}
2638
name: Run PHPUnit Patches
2739
run: sh .github/apply-phpunit-patches.sh

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"google/apiclient-services": "~0.13",
1212
"firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0",
1313
"monolog/monolog": "^1.17|^2.0",
14-
"phpseclib/phpseclib": "~0.3.10||~2.0",
15-
"guzzlehttp/guzzle": "~5.3.1||~6.0||~7.0",
14+
"phpseclib/phpseclib": "~2.0",
15+
"guzzlehttp/guzzle": "~5.3.3||~6.0||~7.0",
1616
"guzzlehttp/psr7": "^1.2"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "^5.0||^8.5",
19+
"phpunit/phpunit": "^5.7||^8.5.13",
2020
"squizlabs/php_codesniffer": "~2.3",
2121
"symfony/dom-crawler": "~2.1",
2222
"symfony/css-selector": "~2.1",

0 commit comments

Comments
 (0)