-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 986 Bytes
/
tests.yml
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
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
run_tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3]
laravel: [^10, ^11]
stability: [prefer-lowest, prefer-stable]
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }}
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- name: Install dependencies
run: |
composer require "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Run tests
run: vendor/bin/phpunit