Skip to content

Commit af2a3c3

Browse files
authored
Merge pull request #6 from wearedevtical/laravel-9
Support Laravel 9
2 parents d666ccc + 8cbf832 commit af2a3c3

File tree

3 files changed

+52
-46
lines changed

3 files changed

+52
-46
lines changed

.github/workflows/tests.yml

Lines changed: 50 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,54 @@
1-
name: "Tests"
1+
name: Tests
22

33
on:
4-
push:
5-
branches: [develop]
6-
pull_request:
7-
branches: [main]
8-
schedule:
9-
- cron: '0 0 * * *'
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- "*"
10+
schedule:
11+
- cron: '0 0 * * *'
1012

1113
jobs:
12-
run-tests:
13-
runs-on: ubuntu-latest
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
php: [7.4, 8.0, 8.1]
18-
laravel: [8.*]
19-
dependency-version: [prefer-lowest, prefer-stable]
20-
include:
21-
- laravel: 8.*
22-
testbench: ^6.23
23-
24-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
25-
26-
steps:
27-
- name: Checkout code
28-
uses: actions/checkout@v2
29-
30-
- name: Setup PHP
31-
uses: shivammathur/setup-php@v2
32-
with:
33-
php-version: ${{ matrix.php }}
34-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
35-
coverage: none
36-
37-
- name: Setup Problem Matches
38-
run: |
39-
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
40-
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
41-
42-
- name: Install dependencies
43-
run: |
44-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
45-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
46-
47-
- name: Execute tests
48-
run: vendor/bin/phpunit
14+
run-tests:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 15
17+
env:
18+
COMPOSER_NO_INTERACTION: 1
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
php: [8.1, 8.0, 7.4]
24+
laravel: [9.*, 8.*]
25+
dependency-version: [prefer-lowest, prefer-stable]
26+
include:
27+
- laravel: 9.*
28+
testbench: 7.*
29+
- laravel: 8.*
30+
testbench: ^6.23
31+
exclude:
32+
- laravel: 9.*
33+
php: 7.4
34+
35+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}
36+
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v2
40+
41+
- name: Setup PHP
42+
uses: shivammathur/setup-php@v2
43+
with:
44+
php-version: ${{ matrix.php }}
45+
coverage: none
46+
extensions: mbstring
47+
48+
- name: Install dependencies
49+
run: |
50+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
51+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
52+
53+
- name: Execute tests
54+
run: composer test

.php_cs.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'array_syntax' => ['syntax' => 'short'],
1616
'ordered_imports' => ['sort_algorithm' => 'alpha'],
1717
'no_unused_imports' => true,
18-
'not_operator_with_successor_space' => true,
18+
'not_operator_with_successor_space' => false,
1919
'trailing_comma_in_multiline' => true,
2020
'phpdoc_scalar' => true,
2121
'unary_operator_spaces' => true,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"type": "library",
1919
"require": {
2020
"php": "^7.4|^8.0",
21-
"illuminate/support": "^6.20.13|7.30.4|^8.22.2"
21+
"illuminate/support": "^6|^7|^8|^9"
2222
},
2323
"require-dev": {
2424
"phpunit/phpunit": "^9.3",

0 commit comments

Comments
 (0)