-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.11 KB
/
test-matrix.yml
File metadata and controls
44 lines (35 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test Matrix
on:
pull_request:
push:
branches:
- '[0-9]+.x' # Trigger for main version branch (e.g. 1.x, 2.x, 3.x, 4.x)
- support/*
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3']
laravel: ['^12.0', '^13.0']
exclude:
- php: '8.2'
laravel: '^13.0'
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
steps:
- uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, pdo, sqlite, curl, dom, fileinfo, gd, intl
coverage: none
- name: Validate composer
run: composer validate --strict
- name: Configure Laravel version
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-update --with-all-dependencies
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress --with-all-dependencies
- name: Run tests
run: vendor/bin/pest --no-coverage