Skip to content

Commit ba524c2

Browse files
committed
Update GitHub Actions for Laravel 12
1 parent 8ff57f1 commit ba524c2

File tree

1 file changed

+37
-34
lines changed

1 file changed

+37
-34
lines changed

.github/workflows/run-tests.yml

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
name: Tests
22

3-
on: [push, pull_request]
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
6-
test:
7-
runs-on: ${{ matrix.os }}
8-
strategy:
9-
fail-fast: false
10-
matrix:
11-
os: [ubuntu-latest]
12-
php: [8.1, 8.0, 7.4]
13-
dependency-version: [prefer-lowest, prefer-stable]
14-
15-
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
16-
17-
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@v2
20-
21-
- name: Cache dependencies
22-
uses: actions/cache@v2
23-
with:
24-
path: ~/.composer/cache/files
25-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
26-
27-
- name: Setup PHP
28-
uses: shivammathur/setup-php@v2
29-
with:
30-
php-version: ${{ matrix.php }}
31-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
32-
coverage: none
33-
34-
- name: Install dependencies
35-
run: composer update --no-interaction --prefer-source
36-
37-
- name: Execute tests
38-
run: vendor/bin/phpunit
8+
test:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest]
15+
php: [7.4, 8.0, 8.1, '8.2', '8.3', '8.4']
16+
dependency-version: [prefer-lowest, prefer-stable]
17+
18+
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Cache dependencies
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/.composer/cache/files
28+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29+
30+
- name: Setup PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php }}
34+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
35+
coverage: none
36+
37+
- name: Install dependencies
38+
run: composer update --no-interaction --prefer-source
39+
40+
- name: Execute tests
41+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)