forked from LaravelCollective/html
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.31 KB
/
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
name: tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
php: ['8.1', '8.2', '8.3']
laravel: ['10.0', '10.48', '11.0']
exclude:
- php: '8.1'
laravel: '11.0'
name: PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Installing PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
extensions: mbstring, json
tools: composer:v2
- name: Lock Package Versions
run: |
composer require "illuminate/http:${{ matrix.laravel }}.*" --no-update -v
composer require "illuminate/routing:${{ matrix.laravel }}.*" --no-update -v
composer require "illuminate/session:${{ matrix.laravel }}.*" --no-update -v
composer require "illuminate/support:${{ matrix.laravel }}.*" --no-update -v
composer require "illuminate/view:${{ matrix.laravel }}.*" --no-update -v
composer require "illuminate/database:${{ matrix.laravel }}.*" --no-update -v
- name: Composer Install
run: composer install --prefer-dist --no-progress --no-interaction
- name: Run Tests
run: php vendor/bin/phpunit --testdox