From 450bdd19e455e7238eb45cf713d02b9723a23118 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 5 Dec 2021 08:22:32 +0100 Subject: [PATCH] Added mutation score badge --- .github/workflows/ci.yml | 2 ++ README.md | 1 + infection.json | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5aa7fcb..d466edf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,3 +9,5 @@ on: jobs: ci: uses: shlinkio/github-actions/.github/workflows/php-lib-ci.yml@main + secrets: + INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }} diff --git a/README.md b/README.md index bbce92b..a616233 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Build Status](https://img.shields.io/github/workflow/status/shlinkio/shlink-php-sdk/Continuous%20integration/main?logo=github&style=flat-square)](https://github.com/shlinkio/shlink-php-sdk/actions?query=workflow%3A%22Continuous+integration%22) [![Code Coverage](https://img.shields.io/codecov/c/gh/shlinkio/shlink-php-sdk/main?style=flat-square)](https://app.codecov.io/gh/shlinkio/shlink-php-sdk) +[![Infection MSI](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fshlinkio%2Fshlink-php-sdk%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/shlinkio/shlink-php-sdk/main) [![Latest Stable Version](https://img.shields.io/github/release/shlinkio/shlink-php-sdk.svg?style=flat-square)](https://packagist.org/packages/shlinkio/shlink-php-sdk) [![License](https://img.shields.io/github/license/shlinkio/shlink-php-sdk.svg?style=flat-square)](https://github.com/shlinkio/shlink-php-sdk/blob/main/LICENSE) [![Paypal donate](https://img.shields.io/badge/Donate-paypal-blue.svg?style=flat-square&logo=paypal&colorA=aaaaaa)](https://slnk.to/donate) diff --git a/infection.json b/infection.json index b7e7bee..00ce157 100644 --- a/infection.json +++ b/infection.json @@ -8,7 +8,10 @@ "logs": { "text": "build/infection/infection-log.txt", "summary": "build/infection/summary-log.txt", - "debug": "build/infection/debug-log.txt" + "debug": "build/infection/debug-log.txt", + "badge": { + "branch": "main" + } }, "tmpDir": "build/infection/temp", "phpUnit": {