-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.38 KB
/
lint.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
name: Lint
on:
push:
pull_request:
jobs:
lint:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
laravel:
- 9
- 10
- 11
exclude:
- php: '8.1'
laravel: 11
name: PHP ${{ matrix.php }} + Laravel ${{ matrix.laravel }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php }}
run: sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
- name: Update Composer to latest version
run: sudo composer self-update
- name: Validate composer.json
run: composer validate
- name: Install Composer dependencies
run: |
composer install --no-interaction
if [[ "${{ matrix.laravel }}" == 9 ]]; then
composer update --no-interaction --with-all-dependencies orchestra/testbench:^7.0 symfony/console:^6.0
elif [[ "${{ matrix.laravel }}" == 10 ]]; then
composer update --no-interaction --with-all-dependencies orchestra/testbench:^8.0 symfony/console:^6.0
elif [[ "${{ matrix.laravel }}" == 11 ]]; then
composer update --no-interaction --with-all-dependencies orchestra/testbench:^9.0 symfony/console:^7.0
fi
- name: Run lint
run: composer lint