File tree Expand file tree Collapse file tree 5 files changed +41
-38
lines changed Expand file tree Collapse file tree 5 files changed +41
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : phpunit
2
+
3
+ on :
4
+ pull_request : {}
5
+ release : {}
6
+ push :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ tests :
11
+ name : unit tests
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ - uses : php-actions/composer@v6
17
+ with :
18
+ version : 2
19
+
20
+ - name : phpunit tests
21
+ uses : php-actions/phpunit@v3
22
+ with :
23
+ configuration : ./test/phpunit.xml
24
+ php_extensions : pcov
25
+
26
+ - name : coverage monitor
27
+
28
+ with :
29
+ github_token : ${{ secrets.GITHUB_TOKEN }}
30
+ coverage_path : test/clover.xml
31
+ comment_footer : false
32
+
33
+ - name : Upload coverage to Codecov
34
+ uses : codecov/codecov-action@v3
35
+ with :
36
+ token : ${{ secrets.CODECOV_TOKEN }}
37
+ files : test/clover.xml
38
+ name : github-ci
39
+ verbose : true
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# php-data-transformer2
2
2
3
- [ ![ Build Status] ( https://travis-ci.org/alexpts/php-data-transformer2.svg?branch=master )] ( https://travis-ci.org/alexpts/php-data-transformer2 )
4
- [ ![ Code Coverage] ( https://scrutinizer-ci.com/g/alexpts/php-data-transformer2/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/alexpts/php-data-transformer2/?branch=master )
5
- [ ![ Code Climate] ( https://codeclimate.com/github/alexpts/php-data-transformer2/badges/gpa.svg )] ( https://codeclimate.com/github/alexpts/php-data-transformer2 )
6
- [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/alexpts/php-data-transformer2/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/alexpts/php-data-transformer2/?branch=master )
3
+ [ ![ phpunit] ( https://github.com/alexpts/php-data-transformer2/actions/workflows/phpunit.yml/badge.svg?branch=master )] ( https://github.com/alexpts/php-data-transformer2/actions/workflows/phpunit.yml )
4
+ [ ![ codecov] ( https://codecov.io/gh/alexpts/php-data-transformer2/branch/master/graph/badge.svg?token=14L6IJA5UE )] ( https://codecov.io/gh/alexpts/php-data-transformer2 )
7
5
8
6
Позволяет извлекать данные из объектов и создавать объекты из данных. Позволяет делать это по заранее опрелделенной схеме в обе стороны. Например извлечь данные из Model для записи в БД. Либо создать/заполнить Model данными из БД.
9
7
You can’t perform that action at this time.
0 commit comments