generated from yiisoft/package-template
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More tests + cleanup + psalm improvements (#55)
* Add yml section to .editorconfig * Remove extra line in .gitattributes * Remove phan from .gitignore * Add PHP 8.0 to static analyze * Update build workflow * Format yml files * Improve changelog * Improve psalm config * Improve readme * Add JSON PHP extension to composer.json * Minor improvements * Add JSON PHP extension to requirements in readme * Fix type * Improve psalm annotations * Add immutability tests
- Loading branch information
Showing
24 changed files
with
221 additions
and
172 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 |
---|---|---|
|
@@ -12,3 +12,6 @@ trim_trailing_whitespace = true | |
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
indent_size = 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
on: | ||
- pull_request | ||
- push | ||
- pull_request | ||
- push | ||
|
||
name: backwards compatibility | ||
jobs: | ||
roave_bc_check: | ||
name: Roave BC Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: fetch tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- name: Roave BC Check | ||
uses: docker://nyholm/roave-bc-check-ga | ||
roave_bc_check: | ||
name: Roave BC Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: fetch tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- name: Roave BC Check | ||
uses: docker://nyholm/roave-bc-check-ga |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ jobs: | |
|
||
php: | ||
- "7.4" | ||
- "8.0" | ||
|
||
steps: | ||
- name: Checkout | ||
|
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 |
---|---|---|
|
@@ -29,7 +29,3 @@ phpunit.phar | |
/phpunit.xml | ||
# phpunit cache | ||
.phpunit.result.cache | ||
|
||
# Phan | ||
analysis.txt | ||
|
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,11 +1,11 @@ | ||
watch: | ||
directories: | ||
- src | ||
- tests | ||
fileMask: '*.php' | ||
directories: | ||
- src | ||
- tests | ||
fileMask: '*.php' | ||
notifications: | ||
passingTests: false | ||
failingTests: false | ||
passingTests: false | ||
failingTests: false | ||
phpunit: | ||
binaryPath: vendor/bin/phpunit | ||
timeout: 180 | ||
binaryPath: vendor/bin/phpunit | ||
timeout: 180 |
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,36 +1,33 @@ | ||
checks: | ||
php: true | ||
php: true | ||
|
||
filter: | ||
paths: | ||
- "src/*" | ||
paths: | ||
- "src/*" | ||
|
||
build: | ||
nodes: | ||
analysis: | ||
environment: | ||
php: 7.4.12 | ||
|
||
tests: | ||
override: | ||
- php-scrutinizer-run | ||
|
||
tests-and-coverage: | ||
environment: | ||
php: 7.4.12 | ||
|
||
dependencies: | ||
override: | ||
- composer self-update | ||
- composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | ||
|
||
tests: | ||
override: | ||
- | ||
command: "./vendor/bin/phpunit --coverage-clover ./coverage.xml" | ||
on_node: 1 | ||
coverage: | ||
file: coverage.xml | ||
format: php-clover | ||
|
||
|
||
nodes: | ||
analysis: | ||
environment: | ||
php: 7.4.12 | ||
|
||
tests: | ||
override: | ||
- php-scrutinizer-run | ||
|
||
tests-and-coverage: | ||
environment: | ||
php: 7.4.12 | ||
|
||
dependencies: | ||
override: | ||
- composer self-update | ||
- composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | ||
|
||
tests: | ||
override: | ||
- command: "./vendor/bin/phpunit --coverage-clover ./coverage.xml" | ||
on_node: 1 | ||
coverage: | ||
file: coverage.xml | ||
format: php-clover |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Data response Change Log | ||
# Yii Data Response Change Log | ||
|
||
## 1.0.0 under development | ||
|
||
|
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.