Skip to content

Commit 34bd8ff

Browse files
authored
Merge pull request #24 from still-code/updates
updates
2 parents 90c2fac + 15a56d2 commit 34bd8ff

21 files changed

+8103
-105
lines changed

.editorconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
; This file is for unifying the coding style for different editors and IDEs.
2-
; More information at http://editorconfig.org
3-
41
root = true
52

63
[*]
74
charset = utf-8
5+
end_of_line = lf
86
indent_size = 4
97
indent_style = space
10-
end_of_line = lf
118
insert_final_newline = true
129
trim_trailing_whitespace = true
1310

1411
[*.md]
1512
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.gitattributes

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
33

44
# Ignore all test and documentation with "export-ignore".
5+
/.github export-ignore
56
/.gitattributes export-ignore
67
/.gitignore export-ignore
7-
/.travis.yml export-ignore
88
/phpunit.xml.dist export-ignore
9-
/.styleci.yml export-ignore
10-
/.scrutinizer.yml export-ignore
9+
/art export-ignore
10+
/docs export-ignore
1111
/tests export-ignore
1212
/.editorconfig export-ignore
13-
/.github/** export-ignore
13+
/.php_cs.dist.php export-ignore
14+
/psalm.xml export-ignore
15+
/psalm.xml.dist export-ignore
16+
/testbench.yaml export-ignore
17+
/UPGRADING.md export-ignore
18+
/phpstan.neon.dist export-ignore
19+
/phpstan-baseline.neon export-ignore

.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"

.github/workflows/codacy-analysis.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/dependabot-auto-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
- name: Dependabot metadata
1515
id: metadata
16-
uses: dependabot/[email protected].0
16+
uses: dependabot/[email protected].6
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919

@@ -29,4 +29,4 @@ jobs:
2929
run: gh pr merge --auto --merge "$PR_URL"
3030
env:
3131
PR_URL: ${{github.event.pull_request.html_url}}
32-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
32+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Fix PHP code style issues
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
php-code-styling:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
with:
19+
ref: ${{ github.head_ref }}
20+
21+
- name: Fix PHP code style issues
22+
uses: aglipanci/[email protected]
23+
24+
- name: Commit changes
25+
uses: stefanzweifel/git-auto-commit-action@v4
26+
with:
27+
commit_message: Fix styling

.github/workflows/phpstan.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PHPStan
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
- 'phpstan.neon.dist'
8+
9+
jobs:
10+
phpstan:
11+
name: phpstan
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: '8.1'
20+
coverage: none
21+
22+
- name: Install composer dependencies
23+
uses: ramsey/composer-install@v2
24+
25+
- name: Run PHPStan
26+
run: ./vendor/bin/phpstan --error-format=github

.github/workflows/update-changelog.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [released]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
update:
912
runs-on: ubuntu-latest
@@ -25,4 +28,4 @@ jobs:
2528
with:
2629
branch: main
2730
commit_message: Update CHANGELOG
28-
file_pattern: CHANGELOG.md
31+
file_pattern: CHANGELOG.md

.gitignore

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
build
2-
composer.lock
3-
docs
4-
vendor
5-
coverage
1+
/node_modules
2+
/public/hot
3+
/public/storage
4+
/storage/*.key
5+
/vendor
6+
.env
7+
.env.backup
8+
.phpunit.result.cache
9+
docker-compose.override.yml
10+
Homestead.json
11+
Homestead.yaml
12+
npm-debug.log
13+
yarn-error.log

.phpunit.cache/test-results

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":1,"defects":[],"times":{"StillCode\\ArPhpLaravel\\Tests\\ExampleTest::true_is_true":0.008,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::it_is_not_arabic_text":0.003,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::it_is_arabic_text":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::int2str_convert_number_to_text":0.002,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::int2str_cant_convert_text_to_number":0.003,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::str2int_convert_text_to_number":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::str2int_cant_convert_number_to_text":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::check_is_not_female":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::check_is_female":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::guess_gender_male":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::guess_gender_female":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::it_convert_mony_to_text":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::it_can_translate_text":0.001}}

0 commit comments

Comments
 (0)