Skip to content

Commit 2047d38

Browse files
authored
update: added laravel 12 support (#27)
1 parent 8b6ba80 commit 2047d38

File tree

3 files changed

+30
-21
lines changed

3 files changed

+30
-21
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,20 @@ jobs:
1010
fail-fast: true
1111
matrix:
1212
php: [8.2, 8.3, 8.4]
13-
laravel: [11.0]
13+
laravel: [11.0, 12.0]
1414
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818

19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
tools: composer:v2
24+
extensions: dom, curl, libxml, mbstring, zip, pcntl, gd, soap
25+
coverage: none
26+
1927
- name: Get composer cache directory
2028
id: composer-cache
2129
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
@@ -27,14 +35,6 @@ jobs:
2735
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ hashFiles('**/composer.json') }}
2836
restore-keys: ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.laravel }}-
2937

30-
- name: Setup PHP
31-
uses: shivammathur/setup-php@v2
32-
with:
33-
php-version: ${{ matrix.php }}
34-
tools: composer:v2
35-
extensions: dom, curl, libxml, mbstring, zip, pcntl, gd, soap
36-
coverage: none
37-
3838
- name: Install dependencies
3939
run: composer require "illuminate/support:^${{ matrix.laravel }}" --prefer-stable --prefer-dist --no-interaction
4040

@@ -48,6 +48,14 @@ jobs:
4848
- name: Checkout
4949
uses: actions/checkout@v4
5050

51+
- name: Setup PHP
52+
uses: shivammathur/setup-php@v2
53+
with:
54+
php-version: '8.2'
55+
tools: composer:v2
56+
extensions: dom, curl, libxml, mbstring, zip, pcntl, gd, soap
57+
coverage: none
58+
5159
- name: Get composer cache directory
5260
id: composer-cache
5361
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
@@ -59,14 +67,6 @@ jobs:
5967
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
6068
restore-keys: ${{ runner.os }}-composer-
6169

62-
- name: Setup PHP
63-
uses: shivammathur/setup-php@v2
64-
with:
65-
php-version: '8.2'
66-
tools: composer:v2
67-
extensions: dom, curl, libxml, mbstring, zip, pcntl, gd, soap
68-
coverage: none
69-
7070
- name: Install dependencies
7171
run: composer install --prefer-dist --no-interaction --optimize-autoloader
7272

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SOAP is old, but still used. Soapy is modern, but feature limited to fit our use
44
Heavily inspired by [artisaninweb/laravel-soap](https://github.com/artisaninweb/laravel-soap).
55

66
### Install
7-
This package is currently supporting Laravel 11.x.
7+
This package is currently supporting Laravel 11.x and 12.x.
88

99
```shell
1010
composer require sourcetoad/soapy

composer.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
"php": "^8.2||^8.3||^8.4",
1919
"ext-simplexml": "*",
2020
"ext-soap": "*",
21-
"illuminate/support": "^11"
21+
"illuminate/support": "^11.0|^12.0"
2222
},
2323
"require-dev": {
24-
"orchestra/testbench": "^9.2",
24+
"orchestra/testbench": "^9.2|^10.0",
2525
"phpunit/phpunit": "^11.2",
26-
"laravel/pint": "^1.19"
26+
"laravel/pint": "1.19"
2727
},
2828
"autoload": {
2929
"psr-4": {
@@ -44,5 +44,14 @@
4444
"Sourcetoad\\Soapy\\SoapyServiceProvider"
4545
]
4646
}
47+
},
48+
"scripts": {
49+
"check-code": [
50+
"@lint",
51+
"@test"
52+
],
53+
"lint": "@php vendor/bin/pint --test",
54+
"lint:fix": "@php vendor/bin/pint",
55+
"test": "@php vendor/bin/phpunit"
4756
}
4857
}

0 commit comments

Comments
 (0)