This repository was archived by the owner on Feb 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +65
-4
lines changed
Expand file tree Collapse file tree 4 files changed +65
-4
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,12 @@ jobs:
5050 run : |
5151 composer phpunit-run-integration-tests
5252
53- - name : " is integration tests succeeded"
53+ - name : " integration tests succeeded"
5454 if : ${{ success() }}
5555 run : |
5656 echo '✅ integration tests pass, congratulations!'
5757
58- - name : " is integration tests failed"
58+ - name : " integration tests failed"
5959 if : ${{ failure() }}
6060 run : |
61- echo '::error:: ❗️iteintegration tests failed '
61+ echo '::error:: ❗️iteintegration tests failed (╯°益°)╯彡┻━┻ '
Original file line number Diff line number Diff line change 1+ name : " Vendor integration tests"
2+
3+ on :
4+ # run integration tests from vendor CI\CD pipeline with webhook
5+ repository_dispatch :
6+ types : [ run_vendor_integration_tests ]
7+
8+ env :
9+ COMPOSER_FLAGS : " --ansi --no-interaction --no-progress --prefer-dist"
10+ BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK : ${{ secrets.BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK }}
11+ TEST2_ENV : 12345
12+
13+ jobs :
14+ tests :
15+ name : " Vendor integration tests"
16+
17+ runs-on : ubuntu-latest
18+
19+ strategy :
20+ matrix :
21+ php-version :
22+ - " 7.4"
23+ dependencies : [ highest ]
24+
25+ steps :
26+
27+ - name : " Checkout"
28+ uses : " actions/checkout@v2"
29+
30+ - name : " Install PHP"
31+ uses : " shivammathur/setup-php@v2"
32+ with :
33+ coverage : " none"
34+ php-version : " ${{ matrix.php-version }}"
35+ ini-values : variables_order=EGPCS
36+ env :
37+ BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK : ${{ secrets.BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK }}
38+ TEST2_ENV : 12345
39+
40+ - name : " Install dependencies"
41+ run : |
42+ composer update ${{ env.COMPOSER_FLAGS }}
43+
44+ - name : " Debug ENV variables"
45+ run : |
46+ printenv
47+
48+ - name : " Run integration tests"
49+ run : |
50+ composer phpunit-run-integration-tests
51+
52+ - name : " integration tests succeeded"
53+ if : ${{ success() }}
54+ run : |
55+ echo '✅ integration tests pass, congratulations!'
56+
57+ - name : " integration tests failed"
58+ if : ${{ failure() }}
59+ run : |
60+ echo '::error:: ❗️iteintegration tests failed (╯°益°)╯彡┻━┻'
Original file line number Diff line number Diff line change 1919* add ` Bitrix24\SDK\Core\BulkItemsReader ` for data-intensive applications for bulk export data from Bitrix24, read strategies located in
2020 folder ` ReadStrategies ` , in services read model ** must** use most effective read strategy.
2121* add integration tests in GitHub Actions pipeline 🎉, now integration tests run on push on ` dev-branch `
22+ * add incoming webhook for run integration tests ` vendor-check.yml ` from vendor CI\CD pipeline
2223
2324### Changed
2425
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ A powerful PHP library for the Bitrix24 REST API
77
88### Build status
99
10- | CI\CD [ status] ( https://github.com/mesilov/bitrix24-php-sdk/actions ) |
10+ | CI\CD [ status] ( https://github.com/mesilov/bitrix24-php-sdk/actions ) on ` master ` |
1111| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
1212| [ ![ phpstan check] ( https://github.com/mesilov/bitrix24-php-sdk/actions/workflows/phpstan.yml/badge.svg )] ( https://github.com/mesilov/bitrix24-php-sdk/actions/workflows/phpstan.yml ) |
1313| [ ![ unit-tests status] ( https://github.com/mesilov/bitrix24-php-sdk/actions/workflows/phpunit.yml/badge.svg )] ( https://github.com/mesilov/bitrix24-php-sdk/actions/workflows/phpunit.yml ) |
You can’t perform that action at this time.
0 commit comments