Skip to content

Commit e281c98

Browse files
committed
Laravel 10
1 parent c15043d commit e281c98

7 files changed

+38
-30
lines changed

.github/workflows/coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818

1919
- name: Setup PHP
2020
uses: shivammathur/setup-php@v2

.github/workflows/php-cs-fixer.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010

1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414

1515
- name: Setup PHP
1616
uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: 7.4
18+
php-version: 8.1
1919
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, iconv
2020

2121
- name: Cache dependencies

.github/workflows/phpunit.yml

+22-20
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,28 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php: [ 7.4, 8.0, 8.1 ]
17-
laravel: [ ^8.12, ^9.0 ]
1816
dependency-version: [ stable, lowest ]
17+
laravel: [ ^8.79, ^9.50.2, 10.* ]
18+
php: [ 8.0, 8.1, 8.2 ]
19+
include:
20+
- laravel: ^8.79
21+
testbench: ^6.24
22+
- laravel: ^9.50.2
23+
testbench: ^7.22
24+
- laravel: 10.*
25+
testbench: 8.*
1926
exclude:
20-
- php: 7.4
21-
laravel: ^9.0
22-
- laravel: ^9.0
23-
dependency-version: lowest
27+
- php: 8.2
28+
laravel: ^8.79
29+
- php: 8.0
30+
laravel: 10.*
2431

32+
timeout-minutes: 10
2533
name: "${{ matrix.php }} / ${{ matrix.laravel }} (${{ matrix.dependency-version }})"
2634

2735
steps:
2836
- name: Checkout code
29-
uses: actions/checkout@v2
37+
uses: actions/checkout@v3
3038

3139
- name: Setup PHP
3240
uses: shivammathur/setup-php@v2
@@ -37,10 +45,11 @@ jobs:
3745

3846
- name: Register composer cache directory
3947
id: composer-cache-files-dir
40-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
48+
run: |
49+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
4150
4251
- name: Cache dependencies
43-
uses: actions/cache@v2
52+
uses: actions/cache@v3
4453
with:
4554
path: |
4655
vendor
@@ -49,18 +58,11 @@ jobs:
4958
restore-keys: |
5059
${{ runner.os }}-composer-
5160
52-
- name: Set minimum stability
53-
run: composer config minimum-stability ${{ matrix.minimum-stability }}
54-
5561
- name: Install dependencies
56-
env:
57-
COMPOSER_DISCARD_CHANGES: true
58-
run: composer require --no-suggest --no-progress --no-interaction --prefer-dist --update-with-all-dependencies "laravel/framework:${{ matrix.laravel }}"
59-
62+
run: composer require --no-interaction --prefer-dist --no-update "illuminate/support:${{ matrix.laravel }}" "illuminate/contracts:${{ matrix.laravel }}" "illuminate/http:${{ matrix.laravel }}" "illuminate/routing:${{ matrix.laravel }}" "illuminate/validation:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}"
63+
6064
- name: Set dependency version
61-
env:
62-
COMPOSER_DISCARD_CHANGES: true
63-
run: composer update --no-suggest --no-progress --no-interaction --no-suggest --prefer-dist --with-all-dependencies --prefer-${{ matrix.dependency-version }}
65+
run: composer update --no-interaction --prefer-dist --with-all-dependencies --prefer-${{ matrix.dependency-version }}
6466

6567
- name: Execute tests
66-
run: vendor/bin/phpunit
68+
run: vendor/bin/phpunit -v

.github/workflows/update-changelog.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
update-publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
with:
1313
repository: ${{ github.event.repository.full_name }}
1414
ref: 'main'

.php-cs-fixer.dist.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
'@PSR2' => true,
1111
'function_declaration' => [
1212
'closure_function_spacing' => 'none',
13+
'closure_fn_spacing' => 'none',
1314
],
1415
'ordered_imports' => [
1516
'sort_algorithm' => 'alpha',

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

66
## [Unreleased]
77

8+
### Added
9+
10+
- Added Laravel 10 support
11+
812
## [3.1.0] - 2022-02-18
913

1014
### Changed

composer.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"validation",
99
"countries"
1010
],
11+
"type": "library",
1112
"homepage": "https://github.com/glhd/laravel-addressing",
1213
"authors": [
1314
{
@@ -22,11 +23,11 @@
2223
],
2324
"require": {
2425
"php": ">=7.4",
25-
"illuminate/contracts": "^v7.0|^v8.0|^9.0|dev-master",
26-
"illuminate/support": "^v7.0|^v8.0|^9.0|dev-master",
27-
"illuminate/http": "^v7.0|^v8.0|^9.0|dev-master",
28-
"illuminate/routing": "^v7.0|^v8.0|^9.0|dev-master",
29-
"illuminate/validation": "^v7.0|^v8.0|^9.0|dev-master",
26+
"illuminate/contracts": "^v7|^8|^9|^10|11.x-dev|dev-master",
27+
"illuminate/support": "^v7|^8|^9|^10|11.x-dev|dev-master",
28+
"illuminate/http": "^v7|^8|^9|^10|11.x-dev|dev-master",
29+
"illuminate/routing": "^v7|^8|^9|^10|11.x-dev|dev-master",
30+
"illuminate/validation": "^v7|^8|^9|^10|11.x-dev|dev-master",
3031
"commerceguys/addressing": "^v1.2",
3132
"symfony/intl": "^v4.2|^v5.0|^v6.0",
3233
"commerceguys/intl": "^v1.1",
@@ -35,7 +36,7 @@
3536
"require-dev": {
3637
"ext-json": "*",
3738
"phpunit/phpunit": "^9.5",
38-
"orchestra/testbench": "^5.20|^6.24|^7.0",
39+
"orchestra/testbench": "^5.20|^6.24|^7.10|^8|9.x-dev|10.x-dev|dev-master",
3940
"friendsofphp/php-cs-fixer": "^3.0"
4041
},
4142
"autoload": {

0 commit comments

Comments
 (0)