Skip to content

Commit

Permalink
Merge pull request #396 from mesilov/385-publish-b24-php-sdk-beta-3
Browse files Browse the repository at this point in the history
385 publish b24 php sdk beta 3
  • Loading branch information
mesilov authored Aug 27, 2024
2 parents 1b9a08f + 94f43ba commit af52132
Show file tree
Hide file tree
Showing 573 changed files with 33,882 additions and 3,035 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ["https://boosty.to/bitrix24-php-sdk"]
13 changes: 6 additions & 7 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ name: PHPStan checks
jobs:
static-analysis:
name: "PHPStan"
runs-on: "ubuntu-latest"
runs-on: ${{ matrix.operating-system }}

strategy:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.0"
dependencies:
- "lowest"
- "highest"
- "8.2"
- "8.3"
dependencies: [ highest ]
operating-system: [ ubuntu-latest, windows-latest ]

steps:
- name: "Checkout"
Expand All @@ -28,7 +27,7 @@ jobs:
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
extensions: mbstring
extensions: json, bcmath, curl, intl, mbstring
tools: composer:v2

- name: "Install lowest dependencies"
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "PHPUnit tests"

on:
- push
- pull_request
push:
pull_request:

env:
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
Expand All @@ -11,13 +11,16 @@ jobs:
tests:
name: "PHPUnit tests"

runs-on: ubuntu-latest
runs-on: ${{ matrix.operating-system }}

strategy:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.2"
- "8.3"
dependencies: [ highest ]
operating-system: [ ubuntu-latest, windows-latest ]

steps:
- name: "Checkout"
Expand All @@ -28,6 +31,7 @@ jobs:
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
extensions: json, bcmath, curl, intl, mbstring

- name: "Install dependencies"
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: "Integration tests"
name: "Vendor integration tests"

on:
push:
branches:
- dev
pull_request:
# run integration tests from vendor CI\CD pipeline with webhook
repository_dispatch:
types: [ run_vendor_integration_tests ]

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"
name: "Vendor integration tests"

runs-on: ubuntu-latest
runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
php-version:
- "7.4"
- "8.2"
- "8.3"
dependencies: [ highest ]
operating-system: [ ubuntu-latest, windows-latest ]

steps:

Expand Down Expand Up @@ -50,12 +50,12 @@ jobs:
run: |
composer phpunit-run-integration-tests
- name: "is integration tests succeeded"
- name: "integration tests succeeded"
if: ${{ success() }}
run: |
echo '✅ integration tests pass, congratulations!'
- name: "is integration tests failed"
- name: "integration tests failed"
if: ${{ failure() }}
run: |
echo '::error:: ❗️iteintegration tests failed '
echo '::error:: ❗integration tests failed (╯°益°)╯彡┻━┻'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/.idea*
/app
vendor
composer.phar
composer.lock
.phpunit.result.cache
tools/.env.local
tools/logs
tests/ApplicationBridge/auth.json
examples/logs
*.log
.env.local
Loading

0 comments on commit af52132

Please sign in to comment.