Skip to content

Commit

Permalink
Update dev dependencies, pipelines and scrutinizer. (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Nov 19, 2020
1 parent cea8f08 commit 437614a
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 32 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -85,6 +85,9 @@ jobs:
restore-keys: |
php${{ matrix.php }}-composer-
- name: Update composer
run: composer self-update

- name: Install dependencies with composer php 7.4
if: matrix.php == '7.4'
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mutation.yml
Expand Up @@ -58,6 +58,9 @@ jobs:
restore-keys: |
php${{ matrix.php }}-composer-
- name: Update composer
run: composer self-update

- name: Install dependencies with composer
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/static.yml
Expand Up @@ -44,6 +44,9 @@ jobs:
restore-keys: |
php${{ matrix.php }}-composer-
- name: Update composer
run: composer self-update

- name: Install dependencies with composer
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

Expand Down
24 changes: 4 additions & 20 deletions .scrutinizer.yml
Expand Up @@ -5,6 +5,10 @@ filter:
paths:
- "src/*"

tools:
php_code_coverage:
enabled: true

build:
nodes:
analysis:
Expand All @@ -14,23 +18,3 @@ build:
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


35 changes: 26 additions & 9 deletions README.md
Expand Up @@ -72,28 +72,45 @@ return [
];
```

## Unit testing
### Unit testing

The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

```php
```shell
./vendor/bin/phpunit
```

Note: You must have PGSQL installed to run the tests, it supports all PGSQL versions.

## Mutation testing
### Mutation testing

The package tests are checked with [Infection](https://infection.github.io/) mutation framework. To run it:

```php
```shell
./vendor/bin/infection
```

## Static analysis
### Static analysis

The code is statically analyzed with [Psalm](https://psalm.dev/docs/). To run static analysis:
The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:

```php
```shell
./vendor/bin/psalm
```

### Support the project

[![Open Collective](https://img.shields.io/badge/Open%20Collective-sponsor-7eadf1?logo=open%20collective&logoColor=7eadf1&labelColor=555555)](https://opencollective.com/yiisoft)

### Follow updates

[![Official website](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](https://www.yiiframework.com/)
[![Twitter](https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter&logoColor=1DA1F2&labelColor=555555?style=flat)](https://twitter.com/yiiframework)
[![Telegram](https://img.shields.io/badge/telegram-join-1DA1F2?style=flat&logo=telegram)](https://t.me/yii3en)
[![Facebook](https://img.shields.io/badge/facebook-join-1DA1F2?style=flat&logo=facebook&logoColor=ffffff)](https://www.facebook.com/groups/yiitalk)
[![Slack](https://img.shields.io/badge/slack-join-1DA1F2?style=flat&logo=slack)](https://yiiframework.com/go/slack)

## License

The Yii DataBase PostgreSQL Extension is free software. It is released under the terms of the BSD License.
Please see [`LICENSE`](./LICENSE.md) for more information.

Maintained by [Yii Software](https://www.yiiframework.com/).
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -24,13 +24,13 @@
"yiisoft/arrays": "^3.0@dev",
"yiisoft/db": "^3.0@dev",
"yiisoft/json": "^1.0",
"yiisoft/strings": "^1.0"
"yiisoft/strings": "^1.1"
},
"require-dev": {
"phpunit/phpunit": "^9.4",
"roave/infection-static-analysis-plugin": "^1.3",
"roave/infection-static-analysis-plugin": "^1.4",
"vimeo/psalm": "^4.1",
"yiisoft/aliases": "^1.0",
"yiisoft/aliases": "^1.1",
"yiisoft/cache": "^3.0@dev",
"yiisoft/di": "^3.0@dev",
"yiisoft/log": "^3.0@dev"
Expand Down

0 comments on commit 437614a

Please sign in to comment.