Skip to content

Commit 42d912a

Browse files
committed
update package from skeleton
1 parent 9a3fa02 commit 42d912a

File tree

8 files changed

+62
-19
lines changed

8 files changed

+62
-19
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ root = true
22

33
[*]
44
charset = utf-8
5+
end_of_line = lf
56
indent_size = 4
67
indent_style = space
7-
end_of_line = lf
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ contact_links:
1111
about: Learn how to notify us for sensitive bugs
1212
- name: Report a bug
1313
url: https://github.com/limenet/laravel-elastica-bridge/issues/new
14-
about: Report a reproducable bug
14+
about: Report a reproducible bug

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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}}

.github/workflows/php-cs-fixer.yml renamed to .github/workflows/fix-php-code-style-issues.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
name: Check & fix styling
1+
name: Fix PHP code style issues
22

3-
on: [push]
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
47

58
jobs:
6-
php-cs-fixer:
9+
php-code-styling:
710
runs-on: ubuntu-latest
811

912
steps:
@@ -12,10 +15,8 @@ jobs:
1215
with:
1316
ref: ${{ github.head_ref }}
1417

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
1920

2021
- name: Commit changes
2122
uses: stefanzweifel/git-auto-commit-action@v4

.github/workflows/run-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ jobs:
5656
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
5757
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
5858
59+
- name: List Installed Dependencies
60+
run: composer show -D
61+
5962
- name: Execute tests
60-
run: composer run test-github
63+
run: composer run test
6164

6265
- uses: codecov/codecov-action@v1
6366
with:

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
.idea
2-
.php_cs
3-
.php_cs.cache
42
.phpunit.result.cache
53
build
64
composer.lock
@@ -11,4 +9,3 @@ phpstan.neon
119
testbench.yaml
1210
vendor
1311
node_modules
14-
.php-cs-fixer.cache

composer.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
"php": "^8.0",
2020
"laravel/framework": "^9.0",
2121
"ruflin/elastica": "^7.1",
22-
"spatie/laravel-package-tools": "^1.9.2"
22+
"spatie/laravel-package-tools": "^1.13.0"
2323
},
2424
"require-dev": {
25-
"brianium/paratest": "^6.2",
26-
"friendsofphp/php-cs-fixer": "^3.8",
25+
"laravel/pint": "^1.0",
2726
"nunomaduro/collision": "^6.0",
2827
"nunomaduro/larastan": "^2.0.1",
2928
"orchestra/testbench": "^7.0",
@@ -48,12 +47,11 @@
4847
}
4948
},
5049
"scripts": {
50+
"post-autoload-dump": "@php ./vendor/bin/testbench package:discover --ansi",
5151
"analyse": "vendor/bin/phpstan analyse",
5252
"test": "vendor/bin/pest",
53-
"test-github": "vendor/bin/phpunit --coverage-text",
5453
"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"
5755
},
5856
"config": {
5957
"sort-packages": true,

0 commit comments

Comments
 (0)