-
-
Notifications
You must be signed in to change notification settings - Fork 332
58 lines (46 loc) · 1.53 KB
/
run-tests.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
56
57
58
name: Tests
on:
push:
branches:
- master
- v4
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.2', '8.1', '8.0']
deps: [highest]
include:
- php: '8.0'
deps: lowest
- php: '8.1'
deps: dingo
name: Tests (PHP ${{ matrix.php }} - ${{ matrix.deps }})
steps:
- uses: actions/checkout@v3
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: xdebug
- name: Install dependencies
if: "${{ matrix.deps == 'highest' }}"
run: composer update
- name: Install dependencies (Dingo)
if: "${{ matrix.deps == 'dingo' }}"
run: COMPOSER=composer.dingo.json composer update --prefer-stable
- name: Install dependencies (lowest)
if: "${{ matrix.deps == 'lowest' }}"
run: COMPOSER=composer.lowest.json composer update --prefer-stable
- name: Execute tests (Laravel/Lumen)
run: composer test-ci
if: "${{ matrix.deps == 'highest' }}"
- name: Execute tests (Lowest)
run: COMPOSER=composer.lowest.json composer test-ci
if: "${{ matrix.deps == 'lowest' }}"
- name: Execute tests (Dingo)
run: COMPOSER=composer.dingo.json composer test-ci
if: "${{ matrix.deps == 'dingo' }}"