Skip to content

Commit 5a76c0f

Browse files
author
İbrahim Halil Oğlakcı
committed
feat: add GitHub Actions workflow for compatibility checks across PHP and Laravel versions.
1 parent d2a79b9 commit 5a76c0f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Compatibility Check
2+
3+
on:
4+
schedule:
5+
- cron: "0 */2 * * *"
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php: [8.2, 8.3, 8.4]
16+
laravel: [10.*, 11.*, 12.*]
17+
18+
name: P${{ matrix.php }} - L${{ matrix.laravel }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
29+
coverage: none
30+
31+
- name: Install dependencies
32+
run: |
33+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
34+
composer update --prefer-stable --prefer-dist --no-interaction
35+
36+
- name: Execute tests
37+
run: vendor/bin/pest

0 commit comments

Comments
 (0)