-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v0.5.1' into main
- Loading branch information
Showing
10 changed files
with
255 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# https://EditorConfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
block_comment_start = /* | ||
block_comment = * | ||
block_comment_end = */ | ||
|
||
[*.yml] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.github/ export-ignore | ||
.gitignore export-ignore | ||
CHANGELOG.md export-ignore | ||
ecs.php export-ignore | ||
phpstan.neon export-ignore | ||
phpunit.xml.dist export-ignore | ||
README.md export-ignore | ||
/docs export-ignore | ||
/tests export-ignore | ||
docs/ export-ignore | ||
tests/ export-ignore | ||
stubs/ export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | ||
|
||
name: "Integrate" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "develop" | ||
pull_request: null | ||
|
||
env: | ||
PHP_EXTENSIONS: "intl" | ||
|
||
jobs: | ||
file_consistency: | ||
name: "1️⃣ File consistency" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Set up PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "8.0" | ||
extensions: "${{ env.PHP_EXTENSIONS }}" | ||
ini-values: "post_max_size=256M" | ||
|
||
- name: "Checkout code" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: Install Effigy | ||
run: | | ||
composer global config --no-plugins allow-plugins.phpstan/extension-installer true | ||
composer global require decodelabs/effigy | ||
- name: "Install dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
dependency-versions: "highest" | ||
|
||
- name: "Check file permissions" | ||
run: | | ||
composer global exec effigy check-executable-permissions | ||
- name: "Check exported files" | ||
run: | | ||
composer global exec effigy check-git-exports | ||
- name: "Find non-printable ASCII characters" | ||
run: | | ||
composer global exec effigy check-non-ascii | ||
- name: "Check source code for syntax errors" | ||
run: | | ||
composer global exec effigy lint | ||
static_analysis: | ||
name: "3️⃣ Static Analysis" | ||
needs: | ||
- "file_consistency" | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
php-version: | ||
- "8.0" | ||
- "8.1" | ||
- "8.2" | ||
steps: | ||
- name: "Set up PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: "${{ env.PHP_EXTENSIONS }}" | ||
ini-values: "post_max_size=256M" | ||
|
||
- name: "Checkout code" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: Install Effigy | ||
run: | | ||
composer global config --no-plugins allow-plugins.phpstan/extension-installer true | ||
composer global require decodelabs/effigy | ||
- name: "Validate Composer configuration" | ||
run: "composer validate --strict" | ||
|
||
- name: "Install dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
dependency-versions: "highest" | ||
|
||
- name: "Execute static analysis" | ||
run: | | ||
composer global exec effigy analyze -- --headless | ||
coding_standards: | ||
name: "4️⃣ Coding Standards" | ||
needs: | ||
- "file_consistency" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Set up PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "8.0" | ||
extensions: "${{ env.PHP_EXTENSIONS }}" | ||
ini-values: "post_max_size=256M" | ||
|
||
- name: "Checkout code" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: "Check EditorConfig configuration" | ||
run: "test -f .editorconfig" | ||
|
||
- name: "Check adherence to EditorConfig" | ||
uses: "greut/eclint-action@v0" | ||
|
||
- name: Install Effigy | ||
run: | | ||
composer global config --no-plugins allow-plugins.phpstan/extension-installer true | ||
composer global require decodelabs/effigy | ||
- name: "Install dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
dependency-versions: "highest" | ||
|
||
- name: "Check coding style" | ||
run: | | ||
composer global exec effigy format -- --headless | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.