Skip to content

Commit d58062e

Browse files
committed
Add PHP 8.2 to the test matrix, use ramsey/composer-install
1 parent 0edccf5 commit d58062e

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

.github/workflows/unit-tests.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,24 @@ name: Unit Tests
33
on: [push, pull_request]
44

55
jobs:
6-
run:
7-
runs-on: ${{ matrix.operating-system }}
6+
phpunit:
7+
name: PHP ${{ matrix.php-version }}
8+
runs-on: ubuntu-latest
89
strategy:
910
matrix:
10-
operating-system: [ubuntu-latest]
11-
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
12-
name: PHP ${{ matrix.php-versions }}
13-
11+
php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
1412
steps:
1513
- name: Checkout
16-
uses: actions/checkout@v1
14+
uses: actions/checkout@v2
1715

1816
- name: Setup PHP
1917
uses: shivammathur/setup-php@v2
2018
with:
21-
php-version: ${{ matrix.php-versions }}
19+
php-version: ${{ matrix.php-version }}
2220
coverage: none
2321

24-
- name: Get composer cache directory
25-
id: composer-cache
26-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
27-
28-
- name: Cache dependencies
29-
uses: actions/cache@v2
30-
with:
31-
path: ${{ steps.composer-cache.outputs.dir }}
32-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
33-
restore-keys: ${{ runner.os }}-composer-
34-
35-
- name: Install dependencies
36-
run: composer install --no-interaction --prefer-dist --no-suggest --no-progress
22+
- name: Install Composer dependencies
23+
uses: ramsey/composer-install@v2
3724

3825
- name: Run test suite
3926
run: composer test

0 commit comments

Comments
 (0)