-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (44 loc) · 1.45 KB
/
tests.yaml
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
name: Tests
on:
pull_request:
push:
branches:
- main
tags-ignore:
- '*'
jobs:
tests:
name: Tests
runs-on: 'ubuntu-latest'
strategy:
matrix:
php-versions: [ '8.2', '8.3', '8.4' ]
ignore-platform-reqs: [ '--ignore-platform-reqs', '' ]
laravel-versions: [ '^10', '^11' ]
exclude:
- php-versions: '8.2'
ignore-platform-reqs: '--ignore-platform-reqs'
- php-versions: '8.3'
ignore-platform-reqs: '--ignore-platform-reqs'
- php-versions: '8.4'
ignore-platform-reqs: '--ignore-platform-reqs'
- php-versions: '8.4'
laravel-versions: '^10'
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP with Xdebug
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
extensions: mbstring, intl, fileinfo, sqlite3, pdo_sqlite
- name: Set Laravel Version
run: 'sed -i -e "s/\"laravel\/framework\": \".*\"/\"laravel\/framework\": \"${{ matrix.laravel-versions }}\"/g" composer.json'
- name: Install dependencies with composer
run: composer update --no-ansi --no-interaction --no-progress ${{ matrix.ignore-platform-reqs }}
- name: Run tests with pest
run: vendor/bin/pest --parallel --coverage --min=80