Skip to content

Commit 9f2c9e3

Browse files
committed
Update GitHub Actions for Laravel 13
1 parent 82fe4c7 commit 9f2c9e3

3 files changed

Lines changed: 81 additions & 51 deletions

File tree

.github/workflows/ci.yml

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,91 +3,132 @@ name: CI
33
on:
44
push:
55
branches:
6-
- "*.x"
6+
- *.x
77
pull_request:
88

99
jobs:
1010
latest:
1111
name: PHP ${{ matrix.php }} Latest
12+
13+
14+
1215
runs-on: ubuntu-latest
16+
17+
1318
strategy:
1419
matrix:
1520
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
1621

22+
23+
1724
steps:
1825
- name: Checkout code
1926
uses: actions/checkout@v3
2027

28+
29+
2130
- name: Setup PHP
2231
uses: shivammathur/setup-php@v2
2332
with:
2433
php-version: ${{ matrix.php }}
2534
tools: composer:v2
2635
coverage: none
2736

37+
38+
2839
- name: Emulate PHP 8.3
2940
run: composer config platform.php 8.3.999
30-
if: matrix.php == '8.4'
41+
if: "matrix.php == '8.4'"
42+
43+
3144

3245
- name: Install dependencies
3346
run: |
3447
composer update --prefer-dist --no-interaction --no-progress
3548
vendor/bin/simple-phpunit install
3649
50+
51+
3752
- name: Execute tests
3853
run: composer test
3954

4055
lowest:
4156
name: PHP ${{ matrix.php }} Lowest
57+
58+
59+
4260
runs-on: ubuntu-latest
61+
62+
4363
strategy:
4464
matrix:
45-
php: ['7.1', '7.4']
65+
php: ['7.1', '7.4', '8.3', '8.4', '8.5']
66+
67+
4668

4769
steps:
4870
- name: Checkout code
4971
uses: actions/checkout@v3
5072

73+
74+
5175
- name: Setup PHP
5276
uses: shivammathur/setup-php@v2
5377
with:
5478
php-version: ${{ matrix.php }}
5579
tools: composer:v1
5680
coverage: none
5781

82+
83+
5884
- name: Install dependencies
5985
run: |
6086
wget https://github.com/puli/cli/releases/download/1.0.0-beta9/puli.phar && chmod +x puli.phar
6187
composer require "sebastian/comparator:^3.0.2" "puli/composer-plugin:1.0.0-beta9" --no-interaction --no-update
6288
composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress
6389
vendor/bin/simple-phpunit install
6490
91+
92+
6593
- name: Execute tests
6694
run: composer test
6795

6896
coverage:
6997
name: Code Coverage
98+
99+
100+
70101
runs-on: ubuntu-latest
71102

103+
104+
72105
steps:
73106
- name: Checkout code
74107
uses: actions/checkout@v3
75108

109+
110+
76111
- name: Setup PHP
77112
uses: shivammathur/setup-php@v2
78113
with:
79114
php-version: 7.4
80115
tools: composer:v2
81116
coverage: xdebug
82117

118+
119+
83120
- name: Install dependencies
84121
run: |
85122
composer require "friends-of-phpspec/phpspec-code-coverage:^4.3.2" --no-interaction --no-update
86123
composer update --prefer-dist --no-interaction --no-progress
87124
125+
126+
88127
- name: Execute tests
89128
run: composer test-ci
90129

130+
131+
91132
- name: Upload coverage
92133
run: |
93134
wget https://scrutinizer-ci.com/ocular.phar

.github/workflows/installation.yml

Lines changed: 35 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,68 @@
11
name: Installation
2+
23
on:
34
push:
45
branches:
5-
- "*.x"
6+
- *.x
67
pull_request:
78

89
jobs:
910
installation:
1011
name: Installation test ${{ matrix.expect }} ${{ matrix.method }} ${{ matrix.requirements }} ${{ matrix.pecl }}
12+
1113
runs-on: ubuntu-latest
1214

1315
strategy:
1416
matrix:
1517
include:
16-
# Test that we find Guzzle 6 v1
1718
- expect: will-find
18-
requirements: "php-http/guzzle6-adapter:^1.1.1"
19-
method: "Http\\Discovery\\HttpClientDiscovery::find();"
20-
# Test that we find Guzzle 6 v2
19+
requirements: php-http/guzzle6-adapter:^1.1.1
20+
method: Http\Discovery\HttpClientDiscovery::find();
2121
- expect: will-find
22-
requirements: "php-http/guzzle6-adapter:^2.0.1"
23-
method: "Http\\Discovery\\HttpClientDiscovery::find();"
24-
# Test that we find Guzzle 7 Adapter
22+
requirements: php-http/guzzle6-adapter:^2.0.1
23+
method: Http\Discovery\HttpClientDiscovery::find();
2524
- expect: will-find
26-
requirements: "php-http/guzzle7-adapter:^0.1"
27-
method: "Http\\Discovery\\HttpClientDiscovery::find();"
28-
# Test that we find a client with Symfony and Guzzle PSR-7
25+
requirements: php-http/guzzle7-adapter:^0.1
26+
method: Http\Discovery\HttpClientDiscovery::find();
2927
- expect: will-find
30-
requirements: "symfony/http-client:^5 php-http/httplug php-http/message-factory guzzlehttp/psr7:^1 http-interop/http-factory-guzzle"
31-
method: "Http\\Discovery\\HttpClientDiscovery::find();"
32-
# We should fail if we dont have php-http/message-factory or PSR-17
28+
requirements: symfony/http-client:^5 php-http/httplug php-http/message-factory guzzlehttp/psr7:^1 http-interop/http-factory-guzzle
29+
method: Http\Discovery\HttpClientDiscovery::find();
3330
- expect: cant-find
34-
requirements: "symfony/http-client:^5 php-http/httplug guzzlehttp/psr7:^1"
35-
method: "Http\\Discovery\\HttpClientDiscovery::find();"
31+
requirements: symfony/http-client:^5 php-http/httplug guzzlehttp/psr7:^1
32+
method: Http\Discovery\HttpClientDiscovery::find();
3633
- expect: cant-find
37-
requirements: "symfony/http-client:^5 php-http/httplug guzzlehttp/psr7:^1 http-interop/http-factory-guzzle"
38-
method: "Http\\Discovery\\HttpClientDiscovery::find();"
39-
# We should be able to find a client when Symfony is only partly installed and we have guzzle adapter installed
34+
requirements: symfony/http-client:^5 php-http/httplug guzzlehttp/psr7:^1 http-interop/http-factory-guzzle
35+
method: Http\Discovery\HttpClientDiscovery::find();
4036
- expect: will-find
41-
requirements: "symfony/http-client:^5 php-http/guzzle6-adapter php-http/httplug php-http/message-factory guzzlehttp/psr7:^1"
42-
method: "Http\\Discovery\\HttpClientDiscovery::find();"
43-
# Test that we find a client with Symfony and Guzzle
37+
requirements: symfony/http-client:^5 php-http/guzzle6-adapter php-http/httplug php-http/message-factory guzzlehttp/psr7:^1
38+
method: Http\Discovery\HttpClientDiscovery::find();
4439
- expect: will-find
45-
requirements: "php-http/client-common:^2 php-http/message:^1.8 symfony/http-client:^4 php-http/guzzle6-adapter"
46-
method: "Http\\Discovery\\HttpClientDiscovery::find();"
47-
# Test that we find an async client with Symfony and Guzzle
40+
requirements: php-http/client-common:^2 php-http/message:^1.8 symfony/http-client:^4 php-http/guzzle6-adapter
41+
method: Http\Discovery\HttpClientDiscovery::find();
4842
- expect: will-find
49-
requirements: "php-http/client-common:^2 php-http/message:^1.8 symfony/http-client:^4 php-http/guzzle6-adapter"
50-
method: "Http\\Discovery\\HttpAsyncClientDiscovery::find();"
51-
# Test that we find PSR-18 Guzzle 6
43+
requirements: php-http/client-common:^2 php-http/message:^1.8 symfony/http-client:^4 php-http/guzzle6-adapter
44+
method: Http\Discovery\HttpAsyncClientDiscovery::find();
5245
- expect: will-find
53-
requirements: "php-http/guzzle6-adapter:^2.0.1"
54-
method: "Http\\Discovery\\Psr18ClientDiscovery::find();"
55-
# Test that we find PSR-18 Guzzle 7
46+
requirements: php-http/guzzle6-adapter:^2.0.1
47+
method: Http\Discovery\Psr18ClientDiscovery::find();
5648
- expect: will-find
57-
requirements: "guzzlehttp/guzzle:^7.0.1"
58-
method: "Http\\Discovery\\Psr18ClientDiscovery::find();"
59-
# Test that we find PSR-18 Symfony 4
49+
requirements: guzzlehttp/guzzle:^7.0.1
50+
method: Http\Discovery\Psr18ClientDiscovery::find();
6051
- expect: will-find
61-
requirements: "symfony/http-client:^4 php-http/httplug php-http/message-factory nyholm/psr7:^1.3"
62-
method: "Http\\Discovery\\Psr18ClientDiscovery::find();"
63-
# Test that we find PSR-18 Symfony 5
52+
requirements: symfony/http-client:^4 php-http/httplug php-http/message-factory nyholm/psr7:^1.3
53+
method: Http\Discovery\Psr18ClientDiscovery::find();
6454
- expect: will-find
65-
requirements: "symfony/http-client:^5 php-http/httplug php-http/message-factory nyholm/psr7:^1.3"
66-
method: "Http\\Discovery\\Psr18ClientDiscovery::find();"
67-
# Test that we find PSR-17 http-interop
55+
requirements: symfony/http-client:^5 php-http/httplug php-http/message-factory nyholm/psr7:^1.3
56+
method: Http\Discovery\Psr18ClientDiscovery::find();
6857
- expect: will-find
69-
requirements: "http-interop/http-factory-guzzle:^1"
70-
method: "Http\\Discovery\\Psr17FactoryDiscovery::findRequestFactory();"
71-
# Test that we find PSR-17 nyholm
58+
requirements: http-interop/http-factory-guzzle:^1
59+
method: Http\Discovery\Psr17FactoryDiscovery::findRequestFactory();
7260
- expect: will-find
73-
requirements: "nyholm/psr7:^1.3"
74-
method: "Http\\Discovery\\Psr17FactoryDiscovery::findRequestFactory();"
75-
# Test that we find Phalcon with PSR
61+
requirements: nyholm/psr7:^1.3
62+
method: Http\Discovery\Psr17FactoryDiscovery::findRequestFactory();
7663
- expect: will-find
77-
pecl: "psr-1.0.0, phalcon-4.0.6"
78-
method: "Http\\Discovery\\Psr17FactoryDiscovery::findRequestFactory();"
64+
pecl: psr-1.0.0, phalcon-4.0.6
65+
method: Http\Discovery\Psr17FactoryDiscovery::findRequestFactory();
7966

8067
steps:
8168
- name: Checkout code

.github/workflows/plugin.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Plugin
2+
23
on:
34
push:
45
branches:
@@ -8,6 +9,7 @@ on:
89
jobs:
910
plugin:
1011
name: Plugin test with Composer ${{ matrix.composer }}
12+
1113
runs-on: ubuntu-latest
1214

1315
strategy:

0 commit comments

Comments
 (0)