Skip to content

Commit 9f7ac7f

Browse files
committed
fixed github workflow
1 parent 2247446 commit 9f7ac7f

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,33 @@ on: [push, pull_request]
44

55
jobs:
66
tests:
7-
8-
name: PHP ${{ matrix.php }}
7+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }}
98

109
runs-on: ubuntu-latest
1110

1211
strategy:
1312
matrix:
14-
php: ['7.3', '7.4', '8.0', '8.1']
13+
php: ['8.0', '8.1']
14+
laravel: [9.*]
15+
stability: [prefer-lowest, prefer-stable]
16+
include:
17+
- laravel: 9.*
18+
testbench: 7.*
1519

1620
steps:
1721
- name: Checkout code
1822
uses: actions/checkout@v2
1923

20-
- name: Cache composer
21-
uses: actions/cache@v1
22-
with:
23-
path: ~/.composer/cache/files
24-
key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
25-
2624
- name: Setup PHP
2725
uses: shivammathur/setup-php@v2
2826
with:
2927
php-version: ${{ matrix.php }}
30-
extension-csv: bcmath, ctype, dom, fileinfo, intl, gd, json, mbstring, pdo, pdo_sqlite, openssl, sqlite, xml, zip
28+
extensions: bcmath, ctype, dom, fileinfo, intl, gd, json, mbstring, pdo, pdo_sqlite, openssl, sqlite, xml, zip
3129
coverage: none
3230

33-
- name: Install composer
34-
run: composer install --no-interaction --no-scripts --no-suggest --prefer-source
35-
31+
- name: Install dependencies
32+
run: |
33+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
34+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
3635
- name: Execute tests
37-
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
36+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)