File tree Expand file tree Collapse file tree 17 files changed +297
-1
lines changed Expand file tree Collapse file tree 17 files changed +297
-1
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on :
4+ push :
5+ branches : [ stable, development ]
6+ pull_request :
7+ branches : [ stable, development ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ continue-on-error : ${{ matrix.experimental }}
13+ strategy :
14+ max-parallel : 2
15+ fail-fast : false
16+ matrix :
17+ php : [7.4, 8.0]
18+ experimental : [false]
19+
20+ steps :
21+ - uses : actions/checkout@v2
22+
23+ - name : Setup PHP Action
24+ uses : shivammathur/setup-php@2.16.0
25+ with :
26+ php-version : ${{ matrix.php }}
27+ coverage : xdebug
28+
29+ - name : Validate composer.json and composer.lock
30+ run : composer validate --strict
31+
32+ - name : Cache Composer packages
33+ id : composer-cache
34+ uses : actions/cache@v2
35+ with :
36+ path : vendor
37+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
38+ restore-keys : |
39+ ${{ runner.os }}-php-
40+
41+ - name : Install dependencies with Composer
42+ uses : ramsey/composer-install@v1
43+
44+ - name : Run unit tests
45+ run : php vendor/bin/codecept run unit
46+
47+ - name : Run Codecept coverage
48+ run : php vendor/bin/codecept run --coverage --coverage-xml --coverage-phpunit
49+
50+ - name : Download artifacts
51+ uses : actions/download-artifact@v2
52+
53+ - name : Codecov
54+ uses : codecov/codecov-action@v2.1.0
55+ with :
56+ 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
Original file line number Diff line number Diff line change 11# php-configuration
22
3+ ![ release] ( https://img.shields.io/github/v/release/mepihindeveloper/php-configuration?label=version )
4+ [ ![ Packagist Version] ( https://img.shields.io/packagist/v/mepihindeveloper/php-configuration )] ( https://packagist.org/packages/mepihindeveloper/php-configuration )
5+ [ ![ PHP Version Require] ( http://poser.pugx.org/mepihindeveloper/php-configuration/require/php )] ( https://packagist.org/packages/mepihindeveloper/php-configuration )
6+ ![ license] ( https://img.shields.io/github/license/mepihindeveloper/php-configuration )
7+
8+ ![ build] ( https://github.com/mepihindeveloper/php-configuration/actions/workflows/php.yml/badge.svg?branch=development )
9+ [ ![ codecov] ( https://codecov.io/gh/mepihindeveloper/php-configuration/branch/development/graph/badge.svg?token=36PP7VKHKG )] ( https://codecov.io/gh/mepihindeveloper/php-configuration )
10+
311Компонент для работы с конфигурацией (настройками) приложения, модулей и компонентов
412
513# Структура
Original file line number Diff line number Diff line change 1+ paths :
2+ tests : tests
3+ output : tests/_output
4+ data : tests/_data
5+ support : tests/_support
6+ envs : tests/_envs
7+ actor_suffix : Tester
8+ extensions :
9+ enabled :
10+ - Codeception\Extension\RunFailed
11+ coverage :
12+ enabled : true
13+ include :
14+ - src/*
15+ exclude :
16+ - src/interfaces/*
Original file line number Diff line number Diff line change 2525 }
2626 },
2727 "minimum-stability" : " dev" ,
28- "prefer-stable" : true
28+ "prefer-stable" : true ,
29+ "require-dev" : {
30+ "codeception/codeception" : " ^4.1" ,
31+ "codeception/module-phpbrowser" : " ^1.0.0" ,
32+ "codeception/module-asserts" : " ^1.0.0"
33+ }
2934}
Original file line number Diff line number Diff line change 1+ *
2+ ! .gitignore
Original file line number Diff line number Diff line change 1+ <?php
2+
3+
4+ /**
5+ * Inherited Methods
6+ * @method void wantToTest($text)
7+ * @method void wantTo($text)
8+ * @method void execute($callable)
9+ * @method void expectTo($prediction)
10+ * @method void expect($prediction)
11+ * @method void amGoingTo($argumentation)
12+ * @method void am($role)
13+ * @method void lookForwardTo($achieveValue)
14+ * @method void comment($description)
15+ * @method void pause()
16+ *
17+ * @SuppressWarnings(PHPMD)
18+ */
19+ class AcceptanceTester extends \Codeception \Actor
20+ {
21+ use _generated \AcceptanceTesterActions;
22+
23+ /**
24+ * Define custom actions here
25+ */
26+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+
4+ /**
5+ * Inherited Methods
6+ * @method void wantToTest($text)
7+ * @method void wantTo($text)
8+ * @method void execute($callable)
9+ * @method void expectTo($prediction)
10+ * @method void expect($prediction)
11+ * @method void amGoingTo($argumentation)
12+ * @method void am($role)
13+ * @method void lookForwardTo($achieveValue)
14+ * @method void comment($description)
15+ * @method void pause()
16+ *
17+ * @SuppressWarnings(PHPMD)
18+ */
19+ class FunctionalTester extends \Codeception \Actor
20+ {
21+ use _generated \FunctionalTesterActions;
22+
23+ /**
24+ * Define custom actions here
25+ */
26+ }
Original file line number Diff line number Diff line change 1+ <?php
2+ namespace Helper ;
3+
4+ // here you can define custom actions
5+ // all public methods declared in helper class will be available in $I
6+
7+ class Acceptance extends \Codeception \Module
8+ {
9+
10+ }
Original file line number Diff line number Diff line change 1+ <?php
2+ namespace Helper ;
3+
4+ // here you can define custom actions
5+ // all public methods declared in helper class will be available in $I
6+
7+ class Functional extends \Codeception \Module
8+ {
9+
10+ }
You can’t perform that action at this time.
0 commit comments