From 5a2b8805f4d4699e92e1fe4475021142bffea8ec Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 6 Oct 2023 17:03:05 +0200 Subject: [PATCH 1/8] wip --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 209f3a6..bc025c7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,6 +35,7 @@ jobs: - uses: shivammathur/setup-php@v2 with: php-version: "8.2" + coverage: xdebug - name: Cache Composer dependencies uses: actions/cache@v3 @@ -50,4 +51,4 @@ jobs: run: sudo chown -R $(whoami) skeleton vendor/pestphp/pest/.temp - name: Execute tests - run: ./vendor/bin/testbench package:test --bail --retry + run: ./vendor/bin/testbench package:test --bail --retry --coverage From 317cff6dc2b7d4c5a6d585eac3305ed44dc309c4 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 6 Oct 2023 20:50:02 +0200 Subject: [PATCH 2/8] add coverage report --- .github/workflows/tests.yml | 5 ++++- README.md | 8 ++++---- phpunit.xml | 7 +++++++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bc025c7..c69fac1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -51,4 +51,7 @@ jobs: run: sudo chown -R $(whoami) skeleton vendor/pestphp/pest/.temp - name: Execute tests - run: ./vendor/bin/testbench package:test --bail --retry --coverage + run: ./vendor/bin/testbench package:test --bail --retry --coverage --coverage-clover build/logs + + - name: Coveralls + uses: coverallsapp/github-action@v2 diff --git a/README.md b/README.md index 150ae8b..ef08783 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,12 @@ php artisan workspace:install Workspace will add a couple of `artisan` commands to your project to help keep Integrations in sync with upstream changes: -``` bash +```bash # Install configured Integrations -php artisan workspace:install +php artisan workspace:install # Updates workspace & Integration dependencies + rebuilds configs -php artisan workspace:update +php artisan workspace:update # Integrates configured Integrations with your editor php artisan workspace:integrate @@ -83,7 +83,7 @@ Workspace checks if your working directory is clean (has no uncommitted files) b ## Overriding default Integrations -Workspace's ships with the following default Integrations: +Workspace ships with the following default Integrations: ```php return [ diff --git a/phpunit.xml b/phpunit.xml index f540fc8..c67bb07 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -17,9 +17,16 @@ ./tests/Unit + ./src + + + + ./src + + From e7b3b14a85a8c15275cde3e10ea8dcfef1488607 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 6 Oct 2023 20:55:54 +0200 Subject: [PATCH 3/8] wip --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c69fac1..c9de1ae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -51,7 +51,7 @@ jobs: run: sudo chown -R $(whoami) skeleton vendor/pestphp/pest/.temp - name: Execute tests - run: ./vendor/bin/testbench package:test --bail --retry --coverage --coverage-clover build/logs + run: ./vendor/bin/pest --bail --retry --coverage --coverage-clover build/logs - name: Coveralls uses: coverallsapp/github-action@v2 From aa4a4b0f5f1140ed1bfa7c8fa2abebaa5c6da537 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 6 Oct 2023 21:07:30 +0200 Subject: [PATCH 4/8] wip --- .github/workflows/tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c9de1ae..6a5aa6f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -50,8 +50,13 @@ jobs: - name: Directory Permissions run: sudo chown -R $(whoami) skeleton vendor/pestphp/pest/.temp + - name: Create coverage report directory + run: mkdir -p build/logs + - name: Execute tests run: ./vendor/bin/pest --bail --retry --coverage --coverage-clover build/logs - name: Coveralls uses: coverallsapp/github-action@v2 + with: + format: From f814e7ce48ca450699a9abd89071cef0bafd4dcd Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 6 Oct 2023 21:09:59 +0200 Subject: [PATCH 5/8] wip --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6a5aa6f..e2380ff 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -59,4 +59,5 @@ jobs: - name: Coveralls uses: coverallsapp/github-action@v2 with: - format: + format: phpunit + file: build/logs From 3ccd3de1f9ff192b6bb707b7edd04caa1049eed4 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 6 Oct 2023 21:12:25 +0200 Subject: [PATCH 6/8] wip --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e2380ff..65d8e88 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,10 +54,10 @@ jobs: run: mkdir -p build/logs - name: Execute tests - run: ./vendor/bin/pest --bail --retry --coverage --coverage-clover build/logs + run: ./vendor/bin/pest --bail --retry --coverage --coverage-clover --min=90 - name: Coveralls uses: coverallsapp/github-action@v2 with: - format: phpunit + format: clover file: build/logs From 87a33840ae03d254814050a57d4ea7746407e4d2 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 6 Oct 2023 21:14:46 +0200 Subject: [PATCH 7/8] wip --- .github/workflows/tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65d8e88..daad464 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -50,14 +50,14 @@ jobs: - name: Directory Permissions run: sudo chown -R $(whoami) skeleton vendor/pestphp/pest/.temp - - name: Create coverage report directory - run: mkdir -p build/logs + # - name: Create coverage report directory + - run: mkdir -p build/logs - - name: Execute tests - run: ./vendor/bin/pest --bail --retry --coverage --coverage-clover --min=90 + - name: Execute tests - coverage threshold 90% + run: ./vendor/bin/pest --bail --retry --coverage --min=90 --coverage-clover build/logs/clover.xml - name: Coveralls uses: coverallsapp/github-action@v2 with: format: clover - file: build/logs + file: build/logs/clover.xml From 2ad5cde6968cfdbc0b2616b249b5333f2e41f875 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 6 Oct 2023 21:18:16 +0200 Subject: [PATCH 8/8] wip --- .github/workflows/tests.yml | 4 ++-- README.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index daad464..925027d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -50,13 +50,13 @@ jobs: - name: Directory Permissions run: sudo chown -R $(whoami) skeleton vendor/pestphp/pest/.temp - # - name: Create coverage report directory + # Create coverage report directory - run: mkdir -p build/logs - name: Execute tests - coverage threshold 90% run: ./vendor/bin/pest --bail --retry --coverage --min=90 --coverage-clover build/logs/clover.xml - - name: Coveralls + - name: Create coverage badge uses: coverallsapp/github-action@v2 with: format: clover diff --git a/README.md b/README.md index ef08783..bd847a3 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Extendible workspace configurator for Laravel to effortlessly keep linters, fixe [![codestyle](https://github.com/media-code/workspace/actions/workflows/codestyle.yml/badge.svg)](https://github.com/media-code/workspace/actions/workflows/codestyle.yml) [![tests](https://github.com/media-code/workspace/actions/workflows/tests.yml/badge.svg)](https://github.com/media-code/workspace/actions/workflows/tests.yml) +[![coverage](https://coveralls.io/repos/github/media-code/workspace/badge.svg)](https://coveralls.io/github/media-code/workspace) ## Install Workspace in your project