Skip to content

Commit 9ab84d2

Browse files
authored
Update tests.yml
1 parent f465222 commit 9ab84d2

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/tests.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [7.2, 7.3, 7.4]
12-
dependency-version: [prefer-lowest, prefer-stable]
11+
php: [7.4, 7.3, 7.2]
12+
stability: [prefer-lowest, prefer-stable]
1313

14-
name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
14+
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
1515

1616
env:
1717
DHLPARCEL_ACCOUNT_ID: ${{ secrets.DHLPARCEL_ACCOUNT_ID }}
@@ -22,20 +22,19 @@ jobs:
2222
- name: Checkout code
2323
uses: actions/checkout@v2
2424

25-
- name: Cache dependencies
26-
uses: actions/cache@v2
27-
with:
28-
path: ~/.composer/cache/files
29-
key: dependencies-composer-${{ hashFiles('composer.json') }}
30-
3125
- name: Setup PHP
3226
uses: shivammathur/setup-php@v2
3327
with:
3428
php-version: ${{ matrix.php }}
3529
coverage: none
3630

31+
- name: Setup problem matchers
32+
run: |
33+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
34+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
35+
3736
- name: Install dependencies
38-
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
37+
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest
3938

4039
- name: Require illuminate/collections
4140
run: composer require illuminate/collections

0 commit comments

Comments
 (0)