Skip to content

Commit 0c45fea

Browse files
fix(foxy): Update CI workflows and apply automated refactors. (#115)
1 parent 434f22d commit 0c45fea

File tree

97 files changed

+3309
-10009
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+3309
-10009
lines changed

.editorconfig

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,25 @@ indent_style = space
1010
indent_size = 4
1111
trim_trailing_whitespace = true
1212

13+
[*.js]
14+
indent_size = 2
15+
16+
[*.md]
17+
trim_trailing_whitespace = false
18+
1319
[*.php]
1420
ij_php_space_before_short_closure_left_parenthesis = false
1521
ij_php_space_after_type_cast = true
1622

17-
[*.md]
18-
trim_trailing_whitespace = false
23+
[*.yaml]
24+
indent_size = 2
1925

2026
[*.yml]
2127
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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@
2626
/CHANGELOG.md merge=union
2727

2828
# Exclude files from the archive
29+
/.editorconfig export-ignore
2930
/.gitattributes export-ignore
3031
/.github export-ignore
3132
/.gitignore export-ignore
3233
/.styleci.yml export-ignore
3334
/codeception.yml export-ignore
3435
/composer-require-checker.json export-ignore
3536
/docs export-ignore
37+
/ecs.php export-ignore
38+
/infection.json* export-ignore
39+
/phpstan*.neon* export-ignore
3640
/phpunit.xml.dist export-ignore
3741
/psalm.xml export-ignore
3842
/rector.php export-ignore
43+
/runtime export-ignore
3944
/tests export-ignore

.github/CODE_OF_CONDUCT.md

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

.github/FUNDING.yml

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

.github/ISSUE_TEMPLATE.md

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"Exclude": [
3+
"phpstan-baseline.neon",
4+
"resources/doc/faqs.md",
5+
"tests/Json/JsonFileTest.php",
6+
"tests/Json/JsonFormatterTest.php"
7+
]
8+
}

.github/linters/actionlint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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'
Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,21 @@
1+
---
12
on:
2-
pull_request:
3+
pull_request: &ignore-paths
34
paths-ignore:
4-
- 'docs/**'
5-
- 'README.md'
6-
- 'CHANGELOG.md'
7-
- '.gitignore'
8-
- '.gitattributes'
9-
- 'infection.json.dist'
10-
- 'phpunit.xml.dist'
11-
- 'psalm.xml'
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
1210

13-
push:
14-
paths-ignore:
15-
- 'docs/**'
16-
- 'README.md'
17-
- 'CHANGELOG.md'
18-
- '.gitignore'
19-
- '.gitattributes'
20-
- 'infection.json.dist'
21-
- 'phpunit.xml.dist'
22-
- 'psalm.xml'
11+
push: *ignore-paths
12+
13+
name: Composer require checker
2314

24-
name: dependency-check
15+
permissions:
16+
contents: read
17+
pull-requests: write
2518

2619
jobs:
2720
composer-require-checker:
28-
uses: php-forge/actions/.github/workflows/composer-require-checker.yml@main
29-
with:
30-
os: >-
31-
['ubuntu-latest']
32-
php-version: >-
33-
['8.1']
21+
uses: yii2-framework/actions/.github/workflows/composer-require-checker.yml@main

.github/workflows/ecs.yml

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,21 @@
1+
---
12
on:
2-
pull_request:
3+
pull_request: &ignore-paths
34
paths-ignore:
4-
- 'docs/**'
5-
- 'README.md'
6-
- 'CHANGELOG.md'
7-
- '.gitignore'
8-
- '.gitattributes'
9-
- 'infection.json.dist'
10-
- 'phpunit.xml.dist'
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
1110

12-
push:
13-
branches: ['main']
14-
paths-ignore:
15-
- 'docs/**'
16-
- 'README.md'
17-
- 'CHANGELOG.md'
18-
- '.gitignore'
19-
- '.gitattributes'
20-
- 'infection.json.dist'
21-
- 'phpunit.xml.dist'
11+
push: *ignore-paths
2212

2313
name: ecs
2414

15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
2519
jobs:
2620
easy-coding-standard:
27-
uses: php-forge/actions/.github/workflows/ecs.yml@main
28-
secrets:
29-
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
30-
with:
31-
os: >-
32-
['ubuntu-latest']
33-
php-version: >-
34-
['8.1']
21+
uses: yii2-framework/actions/.github/workflows/ecs.yml@main

0 commit comments

Comments
 (0)