mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Merge pull request #1247 from acelaya-forks/feature/mutation-badge
Added mutation score badge
This commit is contained in:
commit
1e7602bc36
4 changed files with 13 additions and 11 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -267,7 +267,12 @@ jobs:
|
|||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
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:
|
||||
needs:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
[](https://github.com/shlinkio/shlink/actions?query=workflow%3A%22Continuous+integration%22)
|
||||
[](https://app.codecov.io/gh/shlinkio/shlink)
|
||||
[](https://dashboard.stryker-mutator.io/reports/github.com/shlinkio/shlink/develop)
|
||||
[](https://packagist.org/packages/shlinkio/shlink)
|
||||
[](https://hub.docker.com/r/shlinkio/shlink/)
|
||||
[](https://github.com/shlinkio/shlink/blob/main/LICENSE)
|
||||
|
|
|
@ -8,7 +8,10 @@
|
|||
"logs": {
|
||||
"text": "build/infection-unit/infection-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",
|
||||
"phpUnit": {
|
||||
|
|
|
@ -10,20 +10,13 @@ use function sprintf;
|
|||
|
||||
final class TagRenaming
|
||||
{
|
||||
private string $oldName;
|
||||
private string $newName;
|
||||
|
||||
private function __construct()
|
||||
private function __construct(private string $oldName, private string $newName)
|
||||
{
|
||||
}
|
||||
|
||||
public static function fromNames(string $oldName, string $newName): self
|
||||
{
|
||||
$o = new self();
|
||||
$o->oldName = $oldName;
|
||||
$o->newName = $newName;
|
||||
|
||||
return $o;
|
||||
return new self($oldName, $newName);
|
||||
}
|
||||
|
||||
public static function fromArray(array $payload): self
|
||||
|
|
Loading…
Add table
Reference in a new issue