File tree Expand file tree Collapse file tree 8 files changed +62
-19
lines changed Expand file tree Collapse file tree 8 files changed +62
-19
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ root = true
2
2
3
3
[* ]
4
4
charset = utf-8
5
+ end_of_line = lf
5
6
indent_size = 4
6
7
indent_style = space
7
- end_of_line = lf
8
8
insert_final_newline = true
9
9
trim_trailing_whitespace = true
10
10
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ contact_links:
11
11
about : Learn how to notify us for sensitive bugs
12
12
- name : Report a bug
13
13
url : https://github.com/limenet/laravel-elastica-bridge/issues/new
14
- about : Report a reproducable bug
14
+ about : Report a reproducible bug
Original file line number Diff line number Diff line change
1
+ # Please see the documentation for all configuration options:
2
+ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3
+
4
+ version : 2
5
+ updates :
6
+
7
+ - package-ecosystem : " github-actions"
8
+ directory : " /"
9
+ schedule :
10
+ interval : " weekly"
11
+ labels :
12
+ - " dependencies"
Original file line number Diff line number Diff line change
1
+ name : dependabot-auto-merge
2
+ on : pull_request_target
3
+
4
+ permissions :
5
+ pull-requests : write
6
+ contents : write
7
+
8
+ jobs :
9
+ dependabot :
10
+ runs-on : ubuntu-latest
11
+ if : ${{ github.actor == 'dependabot[bot]' }}
12
+ steps :
13
+
14
+ - name : Dependabot metadata
15
+ id : metadata
16
+ uses : dependabot/fetch-metadata@v1.3.4
17
+ with :
18
+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
19
+
20
+ - name : Auto-merge Dependabot PRs for semver-minor updates
21
+ if : ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
22
+ run : gh pr merge --auto --merge "$PR_URL"
23
+ env :
24
+ PR_URL : ${{github.event.pull_request.html_url}}
25
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
26
+
27
+ - name : Auto-merge Dependabot PRs for semver-patch updates
28
+ if : ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
29
+ run : gh pr merge --auto --merge "$PR_URL"
30
+ env :
31
+ PR_URL : ${{github.event.pull_request.html_url}}
32
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 1
- name : Check & fix styling
1
+ name : Fix PHP code style issues
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' **.php'
4
7
5
8
jobs :
6
- php-cs-fixer :
9
+ php-code-styling :
7
10
runs-on : ubuntu-latest
8
11
9
12
steps :
12
15
with :
13
16
ref : ${{ github.head_ref }}
14
17
15
- - name : Run PHP CS Fixer
16
- uses : docker://oskarstark/php-cs-fixer-ga
17
- with :
18
- args : --config=.php-cs-fixer.dist.php --allow-risky=yes
18
+ - name : Fix PHP code style issues
19
+ uses : aglipanci/laravel-pint-action@1.0.0
19
20
20
21
- name : Commit changes
21
22
uses : stefanzweifel/git-auto-commit-action@v4
Original file line number Diff line number Diff line change 56
56
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
57
57
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
58
58
59
+ - name : List Installed Dependencies
60
+ run : composer show -D
61
+
59
62
- name : Execute tests
60
- run : composer run test-github
63
+ run : composer run test
61
64
62
65
- uses : codecov/codecov-action@v1
63
66
with :
Original file line number Diff line number Diff line change 1
1
.idea
2
- .php_cs
3
- .php_cs.cache
4
2
.phpunit.result.cache
5
3
build
6
4
composer.lock
@@ -11,4 +9,3 @@ phpstan.neon
11
9
testbench.yaml
12
10
vendor
13
11
node_modules
14
- .php-cs-fixer.cache
Original file line number Diff line number Diff line change 19
19
"php" : " ^8.0" ,
20
20
"laravel/framework" : " ^9.0" ,
21
21
"ruflin/elastica" : " ^7.1" ,
22
- "spatie/laravel-package-tools" : " ^1.9.2 "
22
+ "spatie/laravel-package-tools" : " ^1.13.0 "
23
23
},
24
24
"require-dev" : {
25
- "brianium/paratest" : " ^6.2" ,
26
- "friendsofphp/php-cs-fixer" : " ^3.8" ,
25
+ "laravel/pint" : " ^1.0" ,
27
26
"nunomaduro/collision" : " ^6.0" ,
28
27
"nunomaduro/larastan" : " ^2.0.1" ,
29
28
"orchestra/testbench" : " ^7.0" ,
48
47
}
49
48
},
50
49
"scripts" : {
50
+ "post-autoload-dump" : " @php ./vendor/bin/testbench package:discover --ansi" ,
51
51
"analyse" : " vendor/bin/phpstan analyse" ,
52
52
"test" : " vendor/bin/pest" ,
53
- "test-github" : " vendor/bin/phpunit --coverage-text" ,
54
53
"test-coverage" : " vendor/bin/pest --coverage" ,
55
- "format" : " vendor/bin/php-cs-fixer fix --allow-risky=yes" ,
56
- "code-swift" : " docker exec -it --user=laradock -w /var/www/$(git rev-parse --show-toplevel | xargs basename | cat) $(docker ps -q --filter name=laradock_workspace-8.0_) zsh"
54
+ "format" : " vendor/bin/pint"
57
55
},
58
56
"config" : {
59
57
"sort-packages" : true ,
You can’t perform that action at this time.
0 commit comments