Skip to content

Commit

Permalink
Fix minor corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Oct 2, 2023
1 parent 4202e61 commit 2c1572d
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 56 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/mutation.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Expand Up @@ -23,7 +23,7 @@ name: static analysis

jobs:
psalm:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
uses: php-forge/actions/.github/workflows/phpstan.yml@main
with:
os: >-
['ubuntu-latest']
Expand Down
18 changes: 8 additions & 10 deletions README.md
Expand Up @@ -2,10 +2,17 @@
<a href="https://github.com/yii2-extensions/template" target="_blank">
<img src="https://www.yiiframework.com/image/yii_logo_light.svg" height="100px;">
</a>
<h1 align="center">Template.</h1>
<h1 align="center">Yii2-Template.</h1>
<br>
</p>

![php-version](https://img.shields.io/badge/php-%3E%3D8.1-787CB5)
![yii2-version](https://img.shields.io/badge/yii2%20version-2.2-blue)
[![build](https://github.com/yii2-extensions/template/actions/workflows/build.yml/badge.svg)](https://github.com/yii2-extensions/template/actions/workflows/build.yml)
[![codecov](https://codecov.io/gh/yii2-extensions/template/branch/main/graph/badge.svg?token=MF0XUGVLYC)](https://codecov.io/gh/yii2-extensions/template)
[![static analysis](https://github.com/yii2-extensions/template/actions/workflows/static.yml/badge.svg)](https://github.com/yii2-extensions/template/actions/workflows/static.yml)
[![StyleCI](https://github.styleci.io/repos/698621511/shield?branch=main)](https://github.styleci.io/repos/698621511?branch=main)

## Requirements

The minimun version of `PHP` required by this package is `PHP 8.1`.
Expand All @@ -20,15 +27,6 @@ For install this package, you need [composer](https://getcomposer.org/).

[Check the documentation testing](/docs/testing.md) to learn about testing.

## CI status

[![build](https://github.com/yii2-extensions/template/actions/workflows/build.yml/badge.svg)](https://github.com/yii2-extensions/template/actions/workflows/build.yml)
[![codecov](https://codecov.io/gh/yii2-extensions/template/branch/main/graph/badge.svg?token=MF0XUGVLYC)](https://codecov.io/gh/yii2-extensions/template)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyii2-extensions%2Ftemplate%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/yii2-extensions/template/main)
[![static analysis](https://github.com/yii2-extensions/template/actions/workflows/static.yml/badge.svg)](https://github.com/yii2-extensions/template/actions/workflows/static.yml)
[![type-coverage](https://shepherd.dev/github/yii2-extensions/template/coverage.svg)](https://shepherd.dev/github/yii2-extensions/template)
[![StyleCI](https://github.styleci.io/repos/698621511/shield?branch=main)](https://github.styleci.io/repos/698621511?branch=main)

## Our social networks

[![Twitter](https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter&logoColor=1DA1F2&labelColor=555555?style=flat)](https://twitter.com/Terabytesoftw)
Expand Down
13 changes: 9 additions & 4 deletions composer.json
Expand Up @@ -14,8 +14,7 @@
"require-dev": {
"maglnet/composer-require-checker": "^4.6",
"phpunit/phpunit": "^10.2",
"roave/infection-static-analysis-plugin": "^1.32",
"vimeo/psalm": "^5.1"
"proget-hq/phpstan-yii2": "^0.8.0"
},
"autoload": {
"psr-4": {
Expand All @@ -41,7 +40,13 @@
"scripts": {
"check-dependencies": "composer-require-checker",
"mutation": "roave-infection-static-analysis-plugin",
"psalm": "psalm",
"phpstan": "phpstan",
"test": "phpunit"
}
},
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]
}
12 changes: 2 additions & 10 deletions docs/testing.md
Expand Up @@ -10,20 +10,12 @@ To run the checker, execute the following command:
composer run check-dependencies
```

## Mutation testing

Mutation testing is checked with [Infection](https://infection.github.io/). To run it:

```shell
composer run mutation
```

## Static analysis

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

```shell
composer run psalm
composer run phpstan
```

## Unit tests
Expand Down
5 changes: 5 additions & 0 deletions phpstan-yii-config.php
@@ -0,0 +1,5 @@
<?php

declare(strict_types=1);

return [];

0 comments on commit 2c1572d

Please sign in to comment.