File tree 5 files changed +16
-12
lines changed
5 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
test :
11
11
runs-on : ${{ matrix.os }}
12
+
13
+ env :
14
+ latest_php : 8.3
15
+ latest_laravel : 11
16
+
12
17
strategy :
13
18
fail-fast : false
14
19
matrix :
78
83
composer update --prefer-dist --no-interaction --no-progress
79
84
80
85
- name : Migrate phpunit XML configuration
81
- continue-on-error : true
82
- run : vendor/bin/phpunit --migrate-configuration
86
+ run : vendor/bin/phpunit --migrate-configuration || true
83
87
84
88
- name : Run test suite
85
89
run : vendor/bin/phpunit --coverage-clover=coverage.xml
90
94
token : ${{ secrets.CODECOV_TOKEN }}
91
95
files : ./coverage.xml
92
96
fail_ci_if_error : false
97
+ if : matrix.php == env.latest_php && matrix.laravel == env.latest_laravel
Original file line number Diff line number Diff line change 1
- /build
2
1
/vendor
3
2
composer.lock
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit backupGlobals =" false"
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
4
+ backupGlobals =" false"
3
5
backupStaticAttributes =" false"
4
6
beStrictAboutTestsThatDoNotTestAnything =" false"
5
7
bootstrap =" vendor/autoload.php"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class AwsSessionTokenServiceProvider extends ServiceProvider
14
14
*/
15
15
public function register ()
16
16
{
17
- if (!Config::get ('aws-session-token.enable ' , true )) {
17
+ if (! Config::get ('aws-session-token.enable ' , true )) {
18
18
return ; // @codeCoverageIgnore
19
19
}
20
20
@@ -34,7 +34,7 @@ public function register()
34
34
public function boot ()
35
35
{
36
36
$ this ->publishes (
37
- [__DIR__ . '/../config/aws-session-token.php ' => config_path ('aws-session-token.php ' )],
37
+ [__DIR__ . '/../config/aws-session-token.php ' => config_path ('aws-session-token.php ' )],
38
38
'aws-session-token-config '
39
39
);
40
40
}
Original file line number Diff line number Diff line change 9
9
class AwsSessionTokenServiceProviderTest extends TestCase
10
10
{
11
11
/**
12
- * @param Application $app
13
- *
14
- * @return array
12
+ * @param Application $app
15
13
*/
16
14
protected function getPackageProviders ($ app ): array
17
15
{
@@ -21,21 +19,21 @@ protected function getPackageProviders($app): array
21
19
}
22
20
23
21
/**
24
- * @param Application $app
22
+ * @param Application $app
25
23
*/
26
24
protected function resolveApplicationConfiguration ($ app ): void
27
25
{
28
26
parent ::resolveApplicationConfiguration ($ app );
29
27
30
28
$ app ['config ' ]->set ('services.ses ' , [
31
- 'key ' => 'key ' ,
29
+ 'key ' => 'key ' ,
32
30
'secret ' => 'secret ' ,
33
31
'region ' => 'us-east-1 ' ,
34
32
]);
35
33
36
34
$ app ['config ' ]->set ('aws-session-token ' , [
37
35
'enable ' => true ,
38
- 'keys ' => ['services.ses ' ],
36
+ 'keys ' => ['services.ses ' ],
39
37
]);
40
38
41
39
$ _SERVER ['AWS_SESSION_TOKEN ' ] = 'dummy-session-token ' ;
You can’t perform that action at this time.
0 commit comments