-
Notifications
You must be signed in to change notification settings - Fork 6
70 lines (49 loc) · 1.5 KB
/
phpunit.yml
File metadata and controls
70 lines (49 loc) · 1.5 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
name: PHPUnit
on:
- pull_request
jobs:
test:
strategy:
matrix:
include:
- php: 7.2
dependencies: laravel/framework:^7.0
prefer_lowest: 0
- php: 7.3
dependencies: laravel/framework:^8.0
prefer_lowest: 0
- php: 8.0
dependencies: laravel/framework:^9.0
prefer_lowest: 0
- php: 8.1
dependencies: laravel/framework:^10.0
prefer_lowest: 0
- php: 8.2
dependencies: laravel/framework:^11.0
prefer_lowest: 0
- php: 8.2
dependencies: laravel/framework:^12.0
prefer_lowest: 0
runs-on: ubuntu-latest
env:
COMPOSER_PREFER_STABLE: 1
COMPOSER_PREFER_LOWEST: ${{ matrix.prefer_lowest }}
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- run: composer require ${{ matrix.dependencies }} --no-update --no-interaction --no-progress
- run: composer update --no-interaction --no-progress
- run: vendor/bin/phpunit
coverage:
runs-on: ubuntu-latest
env:
PHP_VERSION: 7.2
steps:
- uses: actions/checkout@v4
- run: docker compose build
- run: docker compose run composer update --no-interaction --no-progress
- run: docker compose run phpunit --coverage-clover coverage.xml
- uses: codecov/codecov-action@v3