Skip to content

Commit dc8d92e

Browse files
Merge pull request #2
Добавлены тесты и покрытие
2 parents 73065f6 + be1626e commit dc8d92e

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.github/workflows/php.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PHP Composer
1+
name: build
22

33
on:
44
push:
@@ -45,9 +45,17 @@ jobs:
4545
run: php vendor/bin/codecept run unit
4646

4747
- name: Run Codecept coverage
48-
run: php vendor/bin/codecept run --coverage --coverage-xml
49-
48+
run: php vendor/bin/codecept run --coverage --coverage-xml --coverage-phpunit
49+
50+
- name: Download artifacts
51+
uses: actions/download-artifact@v2
52+
5053
- name: Codecov
5154
uses: codecov/codecov-action@v2.1.0
5255
with:
5356
token: ${{ secrets.CODECOV_TOKEN }}
57+
directory: ./tests/_output
58+
files: ./tests/_output/coverage.xml
59+
flags: unittests
60+
verbose: true
61+
fail_ci_if_error: true

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# php-data-entities
22

3+
![release](https://img.shields.io/github/v/release/mepihindeveloper/php-data-entities?label=version)
4+
![license](https://img.shields.io/github/license/mepihindeveloper/php-data-entities)
5+
![build](https://github.com/mepihindeveloper/php-data-entities/actions/workflows/php.yml/badge.svg?branch=development)
6+
[![codecov](https://codecov.io/gh/mepihindeveloper/php-data-entities/branch/development/graph/badge.svg?token=36PP7VKHKG)](https://codecov.io/gh/mepihindeveloper/php-data-entities)
7+
38
Компонент для работы с пользовательскими константами в PHP. Данный компонент помогает оперировать константами и их
49
представлениями.
510

tests/acceptance/.gitkeep

Whitespace-only changes.

tests/functional/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)