diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 8bc32c4..a5c40ce 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -23,21 +23,22 @@ jobs:
uses: shivammathur/setup-php@v2
with:
# Specify the PHP version
- php-version: '8.1'
+ php-version: '8.2'
- name: Install
# Install project
run: make install
- name: Run linter
# Run Linter
run: make lint
- # Publish code coverage on Code Climate
- # https://github.com/paambaati/codeclimate-action
- - name: Run test & publish code coverage
- uses: paambaati/codeclimate-action@v2.6.0
- # Add Code Climate secret key
- env:
- CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- with:
- coverageCommand: make test-coverage
- coverageLocations: ${{github.workplace}}/build/logs/clover.xml:clover
- debug: true
+ # Publish code coverage on Code Climate
+ # https://github.com/paambaati/codeclimate-action
+ # NOTE: uncomment for using workflow
+ # - name: Run test & publish code coverage
+ # uses: paambaati/codeclimate-action@v5
+ # # Add Code Climate secret key
+ # env:
+ # CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
+ # with:
+ # coverageCommand: make test-coverage
+ # coverageLocations: build/logs/clover.xml:clover
+ # debug: true
diff --git a/Makefile b/Makefile
index 9557147..342c5e7 100644
--- a/Makefile
+++ b/Makefile
@@ -15,4 +15,7 @@ test:
composer exec --verbose phpunit tests
test-coverage:
- composer exec --verbose phpunit tests -- --coverage-clover build/logs/clover.xml
+ XDEBUG_MODE=coverage composer exec --verbose phpunit tests -- --coverage-clover build/logs/clover.xml
+
+test-coverage-text:
+ XDEBUG_MODE=coverage composer exec --verbose phpunit tests -- --coverage-text
diff --git a/README.md b/README.md
index 8f79f45..18d6c27 100644
--- a/README.md
+++ b/README.md
@@ -5,34 +5,41 @@
[](https://codeclimate.com/github/hexlet-boilerplates/php-package/issues)
[](https://codeclimate.com/github/hexlet-boilerplates/php-package/coverage)
+## Prerequisites
+
+* Linux, Macos, WSL
+* PHP >=8.2
+* Xdebug
+* Make
+* Git
+
## Addons
Use
## Setup
-```sh
-$ git clone https://github.com/hexlet-boilerplates/php-package.git
-
-$ cd php-package
-
-$ make install
+```bash
+git clone https://github.com/hexlet-boilerplates/php-package.gi
+cd php-package
+make install
```
## Run tests
```sh
-$ make test
+make test
```
## Test Coverage
-- see `phpunit.xml`
--
-- add CC_TEST_REPORTER_ID to workflow as SECERETS ENV VARIABLE (for safety)
+* see `phpunit.xml`
+* See [codeclimate documentation](https://docs.codeclimate.com/docs/configuring-test-coverage)
+* add `CC_TEST_REPORTER_ID` to workflow as SECRETS ENV VARIABLE (for safety)
[](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=php-package)
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=php-package).
+
See most active contributors on [hexlet-friends](https://friends.hexlet.io/).