add batch support for crm-items #138
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Integration tests" | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
env: | |
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist" | |
BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK: ${{ secrets.BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK }} | |
TEST2_ENV: 12345 | |
jobs: | |
tests: | |
name: "Integration tests" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- "8.1" | |
dependencies: [ highest ] | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: variables_order=EGPCS | |
env: | |
BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK: ${{ secrets.BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK }} | |
- name: "Install dependencies" | |
run: | | |
composer update ${{ env.COMPOSER_FLAGS }} | |
- name: "Debug ENV variables" | |
run: | | |
printenv | |
- name: "Run integration tests" | |
run: | | |
composer phpunit-run-integration-tests | |
- name: "integration tests succeeded" | |
if: ${{ success() }} | |
run: | | |
echo '✅ integration tests pass, congratulations!' | |
- name: "integration tests failed" | |
if: ${{ failure() }} | |
run: | | |
echo '::error:: ❗integration tests failed (╯°益°)╯彡┻━┻ ' |