Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,25 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.js]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.php]
ij_php_space_before_short_closure_left_parenthesis = false
ij_php_space_after_type_cast = true

[*.yaml]
indent_size = 2

[*.yml]
indent_size = 2

[*.xml.dist]
indent_size = 2

[LICENSE*]
indent_style = unset
indent_size = unset
32 changes: 18 additions & 14 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,24 @@
*.gif binary
*.ttf binary

# Ignore some meta files when creating an archive of this repository
/.github export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.phpunit-watcher.yml export-ignore
/.scrutinizer.yml export-ignore
/.styleci.yml export-ignore
/infection.json.dist export-ignore
/phpunit.xml.dist export-ignore
/psalm.xml export-ignore
/tests export-ignore
/docs export-ignore

# Avoid merge conflicts in CHANGELOG
# https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/
/CHANGELOG.md merge=union

# Exclude files from the archive
/.editorconfig export-ignore
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.styleci.yml export-ignore
/codeception.yml export-ignore
/composer-require-checker.json export-ignore
/docs export-ignore
/ecs.php export-ignore
/infection.json* export-ignore
/phpstan*.neon* export-ignore
/phpunit.xml.dist export-ignore
/psalm.xml export-ignore
/rector.php export-ignore
/runtime export-ignore
/tests export-ignore
102 changes: 0 additions & 102 deletions .github/CODE_OF_CONDUCT.md

This file was deleted.

14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

6 changes: 0 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

34 changes: 0 additions & 34 deletions .github/ecs.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/linters/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
paths:
.github/workflows/**/*.yml:
ignore:
- '"pull_request" section is alias node but mapping node is expected'
- '"push" section is alias node but mapping node is expected'
26 changes: 12 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
---
on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
push: *ignore-paths

name: build

permissions:
contents: read

jobs:
phpunit:
uses: php-forge/actions/.github/workflows/phpunit.yml@v1
uses: yii2-framework/actions/.github/workflows/phpunit.yml@v1
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
29 changes: 14 additions & 15 deletions .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
---
on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
push: *ignore-paths

name: Composer require checker

name: dependency-check
permissions:
contents: read
pull-requests: write

jobs:
composer-require-checker:
uses: php-forge/actions/.github/workflows/composer-require-checker.yml@v1
uses: yii2-framework/actions/.github/workflows/composer-require-checker.yml@v1
21 changes: 21 additions & 0 deletions .github/workflows/ecs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
on:
pull_request: &ignore-paths
paths-ignore:
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push: *ignore-paths

name: ecs

permissions:
contents: read
pull-requests: write

jobs:
easy-coding-standard:
uses: yii2-framework/actions/.github/workflows/ecs.yml@v1
17 changes: 17 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
on:
- pull_request
- push

name: linter

permissions:
checks: write
contents: read
statuses: write

jobs:
linter:
uses: yii2-framework/actions/.github/workflows/super-linter.yml@v1
secrets:
AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 13 additions & 14 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
---
on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
push: *ignore-paths

name: mutation test

permissions:
contents: read
pull-requests: write

jobs:
mutation:
uses: php-forge/actions/.github/workflows/infection.yml@v1
uses: yii2-framework/actions/.github/workflows/infection.yml@v1
with:
phpstan: true
secrets:
Expand Down
Loading
Loading