Skip to content

Commit cc6a31e

Browse files
Update dev dependencies, pipelines and README.md. (#38)
1 parent 4b33042 commit cc6a31e

6 files changed

Lines changed: 43 additions & 20 deletions

File tree

.github/workflows/bc.yml_

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
- pull_request
3+
- push
4+
5+
name: backwards compatibility
6+
jobs:
7+
roave_bc_check:
8+
name: Roave BC Check
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: fetch tags
13+
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
14+
- name: Roave BC Check
15+
uses: docker://nyholm/roave-bc-check-ga

.github/workflows/build.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
restore-keys: |
5252
php${{ matrix.php }}-composer-
5353
54+
- name: Update composer
55+
run: composer self-update
56+
5457
- name: Install dependencies with composer php 7.4
5558
if: matrix.php == '7.4'
5659
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
@@ -59,16 +62,5 @@ jobs:
5962
if: matrix.php == '8.0'
6063
run: composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
6164

62-
- name: Run tests with phpunit and coverage on Linux php 7.4
63-
if: matrix.os == 'ubuntu-latest' && matrix.php == '7.4'
64-
run: vendor/bin/phpunit --coverage-clover=coverage.clover --colors=always
65-
66-
- name: Run tests with phpunit without coverage
67-
if: matrix.os != 'ubuntu-latest' || matrix.php != '7.4'
65+
- name: Run tests with phpunit
6866
run: vendor/bin/phpunit --colors=always
69-
70-
- name: Upload code coverage scrutinizer on Linux php 7.4
71-
if: matrix.os == 'ubuntu-latest' && matrix.php == '7.4'
72-
run: |
73-
wget https://scrutinizer-ci.com/ocular.phar
74-
php ocular.phar code-coverage:upload --format=php-clover coverage.clover

.github/workflows/mutation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
restore-keys: |
4444
php${{ matrix.php }}-composer-
4545
46+
- name: Update composer
47+
run: composer self-update
48+
4649
- name: Install dependencies with composer
4750
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
4851

.github/workflows/static.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
restore-keys: |
4141
php${{ matrix.php }}-composer-
4242
43+
- name: Update composer
44+
run: composer self-update
45+
4346
- name: Install dependencies with composer
4447
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
4548

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The package provides `Html` helper that has static methods to generate HTML.
1515
[![Code Coverage](https://scrutinizer-ci.com/g/yiisoft/html/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/yiisoft/html/?branch=master)
1616
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiisoft%2Fhtml%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/html/master)
1717
[![static analysis](https://github.com/yiisoft/html/workflows/static%20analysis/badge.svg)](https://github.com/yiisoft/html/actions?query=workflow%3A%22static+analysis%22)
18-
[![type-coverage](https://shepherd.dev/github/yiisoft/profiler/coverage.svg)](https://shepherd.dev/github/yiisoft/profiler)
18+
[![type-coverage](https://shepherd.dev/github/yiisoft/html/coverage.svg)](https://shepherd.dev/github/yiisoft/html)
1919

2020
## Requirements
2121

@@ -149,32 +149,42 @@ Overall the helper has the following method groups.
149149

150150
- generateId
151151

152-
## Testing
153-
154152
### Unit testing
155153

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

158-
```
156+
```shell
159157
./vendor/bin/phpunit
160158
```
161159

162160
### Mutation testing
163161

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

166-
```
164+
```shell
167165
./vendor/bin/infection
168166
```
169167

170-
## Static analysis
168+
### Static analysis
171169

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

174-
```
172+
```shell
175173
./vendor/bin/psalm
176174
```
177175

176+
### Support the project
177+
178+
[![Open Collective](https://img.shields.io/badge/Open%20Collective-sponsor-7eadf1?logo=open%20collective&logoColor=7eadf1&labelColor=555555)](https://opencollective.com/yiisoft)
179+
180+
### Follow updates
181+
182+
[![Official website](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](https://www.yiiframework.com/)
183+
[![Twitter](https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter&logoColor=1DA1F2&labelColor=555555?style=flat)](https://twitter.com/yiiframework)
184+
[![Telegram](https://img.shields.io/badge/telegram-join-1DA1F2?style=flat&logo=telegram)](https://t.me/yii3en)
185+
[![Facebook](https://img.shields.io/badge/facebook-join-1DA1F2?style=flat&logo=facebook&logoColor=ffffff)](https://www.facebook.com/groups/yiitalk)
186+
[![Slack](https://img.shields.io/badge/slack-join-1DA1F2?style=flat&logo=slack)](https://yiiframework.com/go/slack)
187+
178188
## License
179189

180190
The Yii HTML is free software. It is released under the terms of the BSD License.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"require-dev": {
2323
"phpunit/phpunit": "^9.4",
24-
"roave/infection-static-analysis-plugin": "^1.3",
24+
"roave/infection-static-analysis-plugin": "^1.4",
2525
"vimeo/psalm": "^4.1"
2626
},
2727
"autoload": {

0 commit comments

Comments
 (0)