File tree 4 files changed +38
-24
lines changed
4 files changed +38
-24
lines changed Original file line number Diff line number Diff line change
1
+ name : Code checks
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - development
7
+
8
+ # This allows a subsequently queued workflow run to interrupt previous runs
9
+ concurrency :
10
+ group : ' ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
11
+ cancel-in-progress : true
12
+
13
+ jobs :
14
+ php-code-checks :
15
+ runs-on : ubuntu-latest
16
+ container : xolvionl/laravel:minimal
17
+ steps :
18
+ - name : Fix Git permissions
19
+ run : git config --global --add safe.directory *
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+ - name : Composer validate
23
+ run : composer validate --strict
24
+ - name : Composer install
25
+ run : composer install
26
+ - name : Larastan
27
+ run : composer larastan
28
+ - name : Code style
29
+ run : composer format-dry
30
+ - name : Run tests
31
+ run : composer test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,9 +7,8 @@ services:
7
7
command : php-fpm -F
8
8
hostname : laravel-data-openapi-generator
9
9
extra_hosts :
10
- - " laravel-data-openapi-generator.localhost :host-gateway"
10
+ - " host.docker.internal :host-gateway"
11
11
environment :
12
- TZ : ${TZ}
13
12
COMPOSER_HOME : ~/.composer
14
13
COMPOSER_CACHE_DIR : ~/.composer/cache
15
14
restart : unless-stopped
Original file line number Diff line number Diff line change 29
29
expect (File::exists (config ('openapi-generator.path ' )))->toBe (true );
30
30
expect (File::get (config ('openapi-generator.path ' )))->toBeJson ();
31
31
});
32
+
33
+ afterAll (function () {
34
+ if (File::exists (config ('openapi-generator.path ' ))) {
35
+ File::delete (config ('openapi-generator.path ' ));
36
+ }
37
+ });
You can’t perform that action at this time.
0 commit comments