From e159d93e519e382cefccb49597d427811ab68684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 1 Aug 2023 20:24:29 +0200 Subject: [PATCH 1/5] Add coverage to PHPUnit [skip ci] --- phpunit.xml.dist | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 008ee7d..9a28847 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -18,6 +18,11 @@ ./tests/Feature + + + + + ./src From 16315de897ee80344b4cbdfea22e44fe5e37a778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 1 Aug 2023 20:30:45 +0200 Subject: [PATCH 2/5] Update .gitignore --- .gitignore | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index d6b5528..dd8c37f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,15 @@ -# Composer +# IDE and local environment +/.idea/ + +# Dependencies +/composer.lock /vendor/ -composer.lock -# CSFixer -.php-cs-fixer.cache +# Library -# PHPUnit +# Tests +/build/ +.php-cs-fixer.cache .phpunit.result.cache -coverage.xml - -# JetBrains -.idea -#Gecko driver required for spec update -/drivers +# Distribution From 3e624d1e250bee1678f10f19494a00cba74cb2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 1 Aug 2023 20:32:28 +0200 Subject: [PATCH 3/5] Enable coverage upload --- .github/workflows/back-end.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/back-end.yml b/.github/workflows/back-end.yml index aacadd4..4ecb982 100644 --- a/.github/workflows/back-end.yml +++ b/.github/workflows/back-end.yml @@ -108,7 +108,7 @@ jobs: run: | wget --no-verbose \ "https://github.com/php-coveralls/php-coveralls/releases/download/v2.5.3/php-coveralls.phar" - #php ./php-coveralls.phar --verbose + php ./php-coveralls.phar --verbose static_analysis: name: "3️⃣ Static Analysis" From 282adb46ad7026c52364dfba2db50757231b5a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 1 Aug 2023 20:36:34 +0200 Subject: [PATCH 4/5] Add coverage badge to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0037c2b..76b5130 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ ![GitHub](https://img.shields.io/github/license/prinsfrank/MRTD) ![PHP Version Support](https://img.shields.io/packagist/php-v/prinsfrank/MRTD) +[![Coverage](https://coveralls.io/repos/github/PrinsFrank/MRTD/badge.svg)](https://coveralls.io/github/PrinsFrank/MRTD) Machine Readable Travel Documents are everywhere. They are standardized by ICAO - the International Civil Aviation Organization, a United Nations specialized agency. From abb2cb5006f84cf4bc8f2c56047a6a21227ddf09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 1 Aug 2023 20:49:13 +0200 Subject: [PATCH 5/5] Add link on every badge --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 76b5130..85608e9 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ # MRTD - Machine Readable Travel Documents -![GitHub](https://img.shields.io/github/license/prinsfrank/MRTD) -![PHP Version Support](https://img.shields.io/packagist/php-v/prinsfrank/MRTD) +[![License](https://img.shields.io/github/license/prinsfrank/MRTD)](https://github.com/PrinsFrank/MRTD/blob/main/LICENSE) +[![PHP Version Support](https://img.shields.io/packagist/php-v/prinsfrank/MRTD)](https://github.com/PrinsFrank/MRTD/blob/main/composer.json) [![Coverage](https://coveralls.io/repos/github/PrinsFrank/MRTD/badge.svg)](https://coveralls.io/github/PrinsFrank/MRTD) Machine Readable Travel Documents are everywhere. They are standardized by ICAO - the International Civil Aviation Organization, a United Nations specialized agency.