Added mutation score badge

This commit is contained in:
Alejandro Celaya 2021-12-05 08:55:05 +01:00
parent 4a4522dfa3
commit 7477e672fe
4 changed files with 13 additions and 11 deletions

View file

@ -267,7 +267,12 @@ jobs:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
path: build path: build
- run: composer infect:ci:${{ matrix.test-group }} - if: ${{ matrix.test-group == 'unit' }}
run: composer infect:ci:unit
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
- if: ${{ matrix.test-group == 'db' }}
run: composer infect:ci:db
upload-coverage: upload-coverage:
needs: needs:

View file

@ -2,6 +2,7 @@
[![Build Status](https://img.shields.io/github/workflow/status/shlinkio/shlink/Continuous%20integration/develop?logo=github&style=flat-square)](https://github.com/shlinkio/shlink/actions?query=workflow%3A%22Continuous+integration%22) [![Build Status](https://img.shields.io/github/workflow/status/shlinkio/shlink/Continuous%20integration/develop?logo=github&style=flat-square)](https://github.com/shlinkio/shlink/actions?query=workflow%3A%22Continuous+integration%22)
[![Code Coverage](https://img.shields.io/codecov/c/gh/shlinkio/shlink/develop?style=flat-square)](https://app.codecov.io/gh/shlinkio/shlink) [![Code Coverage](https://img.shields.io/codecov/c/gh/shlinkio/shlink/develop?style=flat-square)](https://app.codecov.io/gh/shlinkio/shlink)
[![Infection MSI](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fshlinkio%2Fshlink%2Fdevelop)](https://dashboard.stryker-mutator.io/reports/github.com/shlinkio/shlink/develop)
[![Latest Stable Version](https://img.shields.io/github/release/shlinkio/shlink.svg?style=flat-square)](https://packagist.org/packages/shlinkio/shlink) [![Latest Stable Version](https://img.shields.io/github/release/shlinkio/shlink.svg?style=flat-square)](https://packagist.org/packages/shlinkio/shlink)
[![Docker pulls](https://img.shields.io/docker/pulls/shlinkio/shlink.svg?logo=docker&style=flat-square)](https://hub.docker.com/r/shlinkio/shlink/) [![Docker pulls](https://img.shields.io/docker/pulls/shlinkio/shlink.svg?logo=docker&style=flat-square)](https://hub.docker.com/r/shlinkio/shlink/)
[![License](https://img.shields.io/github/license/shlinkio/shlink.svg?style=flat-square)](https://github.com/shlinkio/shlink/blob/main/LICENSE) [![License](https://img.shields.io/github/license/shlinkio/shlink.svg?style=flat-square)](https://github.com/shlinkio/shlink/blob/main/LICENSE)

View file

@ -8,7 +8,10 @@
"logs": { "logs": {
"text": "build/infection-unit/infection-log.txt", "text": "build/infection-unit/infection-log.txt",
"summary": "build/infection-unit/summary-log.txt", "summary": "build/infection-unit/summary-log.txt",
"debug": "build/infection-unit/debug-log.txt" "debug": "build/infection-unit/debug-log.txt",
"badge": {
"branch": "develop"
}
}, },
"tmpDir": "build/infection-unit/temp", "tmpDir": "build/infection-unit/temp",
"phpUnit": { "phpUnit": {

View file

@ -10,20 +10,13 @@ use function sprintf;
final class TagRenaming final class TagRenaming
{ {
private string $oldName; private function __construct(private string $oldName, private string $newName)
private string $newName;
private function __construct()
{ {
} }
public static function fromNames(string $oldName, string $newName): self public static function fromNames(string $oldName, string $newName): self
{ {
$o = new self(); return new self($oldName, $newName);
$o->oldName = $oldName;
$o->newName = $newName;
return $o;
} }
public static function fromArray(array $payload): self public static function fromArray(array $payload): self