Skip to content

Commit f9cb02f

Browse files
committed
run tests
1 parent 59b5ded commit f9cb02f

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
php-tests:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest]
13+
php: [8.3, 8.4]
14+
laravel: [11.*, 12.*]
15+
dependency-version: [prefer-stable]
16+
exclude:
17+
- php: 8.1
18+
laravel: 11.*
19+
- php: 8.1
20+
laravel: 12.*
21+
- php: 8.4
22+
laravel: 10.*
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ubuntu-latest
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v3
27+
28+
- name: Cache dependencies
29+
uses: actions/cache@v4
30+
with:
31+
path: ~/.composer/cache/files
32+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
33+
34+
- name: Setup PHP
35+
uses: shivammathur/setup-php@v2
36+
with:
37+
php-version: ${{ matrix.php }}
38+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
39+
coverage: none
40+
41+
- name: Install dependencies
42+
run: |
43+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
44+
45+
- name: Execute tests
46+
run: vendor/bin/pest

0 commit comments

Comments
 (0)