-
-
Notifications
You must be signed in to change notification settings - Fork 1
90 lines (77 loc) · 2.42 KB
/
Copy pathtests.yml
File metadata and controls
90 lines (77 loc) · 2.42 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Tests
on:
push:
branches:
- main
- larvel-13-support
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- laravel: "10.*"
testbench: "8.*"
php: "8.2"
- laravel: "11.*"
testbench: "9.*"
php: "8.3"
- laravel: "12.*"
testbench: "10.*"
php: "8.3"
- laravel: "13.*"
testbench: "11.*"
php: "8.4"
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ matrix.laravel }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php }}-${{ matrix.laravel }}-
composer-${{ runner.os }}-${{ matrix.php }}-
- name: Install matrix dependencies
env:
COMPOSER_NO_BLOCKING: 1
COMPOSER_NO_SECURITY_BLOCKING: 1
run: |
composer require --no-interaction --no-update "illuminate/support:${{ matrix.laravel }}"
composer require --dev --no-interaction --no-update "orchestra/testbench:${{ matrix.testbench }}"
composer update --prefer-dist --no-interaction --no-progress --with-all-dependencies
- name: Run tests
run: composer test
phpstan:
runs-on: ubuntu-latest
name: PHPStan static analysis
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
coverage: none
tools: composer:v2
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: composer-phpstan-${{ runner.os }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-phpstan-${{ runner.os }}-
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Run PHPStan
run: composer phpstan