Skip to content

Commit c3a5546

Browse files
Initial commit
0 parents  commit c3a5546

32 files changed

Lines changed: 1124 additions & 0 deletions

.editorconfig

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 4
11+
trim_trailing_whitespace = true
12+
13+
[*.js]
14+
indent_size = 2
15+
16+
[*.md]
17+
trim_trailing_whitespace = false
18+
19+
[*.php]
20+
ij_php_space_before_short_closure_left_parenthesis = false
21+
ij_php_space_after_type_cast = true
22+
23+
[*.yaml]
24+
indent_size = 2
25+
26+
[*.yml]
27+
indent_size = 2
28+
29+
[*.xml.dist]
30+
indent_size = 2
31+
32+
[LICENSE*]
33+
indent_style = unset
34+
indent_size = unset

.gitattributes

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Autodetect text files
2+
* text=auto eol=lf
3+
4+
# ...Unless the name matches the following overriding patterns
5+
6+
# Definitively text files
7+
*.php text
8+
*.css text
9+
*.js text
10+
*.txt text
11+
*.md text
12+
*.xml text
13+
*.json text
14+
*.bat text
15+
*.sql text
16+
*.yml text
17+
18+
# Ensure those won't be messed up with
19+
*.png binary
20+
*.jpg binary
21+
*.gif binary
22+
*.ttf binary
23+
24+
# Avoid merge conflicts in CHANGELOG
25+
# https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/
26+
/CHANGELOG.md merge=union
27+
28+
# Exclude files from the archive
29+
/.editorconfig export-ignore
30+
/.gitattributes export-ignore
31+
/.github export-ignore
32+
/.gitignore export-ignore
33+
/.styleci.yml export-ignore
34+
/codeception.yml export-ignore
35+
/composer-require-checker.json export-ignore
36+
/docs export-ignore
37+
/ecs.php export-ignore
38+
/infection.json* export-ignore
39+
/phpstan*.neon* export-ignore
40+
/phpunit.xml.dist export-ignore
41+
/psalm.xml export-ignore
42+
/rector.php export-ignore
43+
/runtime export-ignore
44+
/tests export-ignore

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
version: 2
3+
updates:
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"
9+
10+
# Maintain dependencies for Composer
11+
- package-ecosystem: "composer"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"
15+
versioning-strategy: increase-if-necessary

.github/linters/actionlint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
paths:
3+
.github/workflows/**/*.yml:
4+
ignore:
5+
- '"pull_request" section is alias node but mapping node is expected'
6+
- '"push" section is alias node but mapping node is expected'
7+
- "section is alias node but mapping node is expected"

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: build
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
phpunit:
20+
uses: yii2-framework/actions/.github/workflows/phpunit.yml@main
21+
secrets:
22+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: Composer require checker
14+
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
19+
jobs:
20+
composer-require-checker:
21+
uses: yii2-framework/actions/.github/workflows/composer-require-checker.yml@main

.github/workflows/ecs.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: ecs
14+
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
19+
jobs:
20+
easy-coding-standard:
21+
uses: yii2-framework/actions/.github/workflows/ecs.yml@main

.github/workflows/linter.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
on:
3+
- pull_request
4+
- push
5+
6+
name: linter
7+
8+
permissions:
9+
checks: write
10+
contents: read
11+
statuses: write
12+
13+
jobs:
14+
linter:
15+
uses: yii2-framework/actions/.github/workflows/super-linter.yml@v1
16+
secrets:
17+
AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/mutation.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: mutation test
14+
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
19+
jobs:
20+
mutation:
21+
uses: yii2-framework/actions/.github/workflows/infection.yml@v1
22+
with:
23+
phpstan: true
24+
secrets:
25+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

.github/workflows/static.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: static analysis
14+
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
19+
jobs:
20+
phpstan:
21+
uses: yii2-framework/actions/.github/workflows/phpstan.yml@main

0 commit comments

Comments
 (0)