-
-
Notifications
You must be signed in to change notification settings - Fork 20
55 lines (45 loc) · 1.46 KB
/
compatibility-check.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Compatibility Check
on:
push:
branches:
- main
- refactor/**
- feature/**
- fix/**
jobs:
check-compatibility:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.2, 8.3]
laravel: [9.*, 10.*, 11.*]
name: PHP ${{ matrix.php }} on ${{ matrix.os }} - Laravel ${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, json, openssl
coverage: none
- name: Install Composer
run: composer self-update
- name: Create Laravel project
run: composer create-project --prefer-dist laravel/laravel laravel-project "${{ matrix.laravel }}" --no-progress --no-interaction
- name: Navigate to Laravel project
working-directory: ./laravel-project
run: |
# Add local package path
composer config repositories.local path ../
# Require the package
composer require jerome/fetch-php:* --no-update
- name: Install dependencies
working-directory: ./laravel-project
run: composer update --prefer-dist --no-progress --no-suggest
- name: Run Laravel tests (if applicable)
working-directory: ./laravel-project
run: php artisan test