Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit af52132

Browse files
authored
Merge pull request #396 from mesilov/385-publish-b24-php-sdk-beta-3
385 publish b24 php sdk beta 3
2 parents 1b9a08f + 94f43ba commit af52132

File tree

573 files changed

+33882
-3035
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

573 files changed

+33882
-3035
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: ["https://boosty.to/bitrix24-php-sdk"]

.github/workflows/phpstan.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@ name: PHPStan checks
77
jobs:
88
static-analysis:
99
name: "PHPStan"
10-
runs-on: "ubuntu-latest"
10+
runs-on: ${{ matrix.operating-system }}
1111

1212
strategy:
1313
fail-fast: false
1414
matrix:
1515
php-version:
16-
- "7.4"
17-
- "8.0"
18-
dependencies:
19-
- "lowest"
20-
- "highest"
16+
- "8.2"
17+
- "8.3"
18+
dependencies: [ highest ]
19+
operating-system: [ ubuntu-latest, windows-latest ]
2120

2221
steps:
2322
- name: "Checkout"
@@ -28,7 +27,7 @@ jobs:
2827
with:
2928
coverage: "none"
3029
php-version: "${{ matrix.php-version }}"
31-
extensions: mbstring
30+
extensions: json, bcmath, curl, intl, mbstring
3231
tools: composer:v2
3332

3433
- name: "Install lowest dependencies"

.github/workflows/phpunit.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: "PHPUnit tests"
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
pull_request:
66

77
env:
88
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
@@ -11,13 +11,16 @@ jobs:
1111
tests:
1212
name: "PHPUnit tests"
1313

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

1616
strategy:
17+
fail-fast: false
1718
matrix:
1819
php-version:
19-
- "7.4"
20+
- "8.2"
21+
- "8.3"
2022
dependencies: [ highest ]
23+
operating-system: [ ubuntu-latest, windows-latest ]
2124

2225
steps:
2326
- name: "Checkout"
@@ -28,6 +31,7 @@ jobs:
2831
with:
2932
coverage: "none"
3033
php-version: "${{ matrix.php-version }}"
34+
extensions: json, bcmath, curl, intl, mbstring
3135

3236
- name: "Install dependencies"
3337
run: |

.github/workflows/integration.yml renamed to .github/workflows/vendor-check.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
name: "Integration tests"
1+
name: "Vendor integration tests"
22

33
on:
4-
push:
5-
branches:
6-
- dev
7-
pull_request:
4+
# run integration tests from vendor CI\CD pipeline with webhook
5+
repository_dispatch:
6+
types: [ run_vendor_integration_tests ]
87

98
env:
109
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
1110
BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK: ${{ secrets.BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK }}
12-
TEST2_ENV: 12345
1311

1412
jobs:
1513
tests:
16-
name: "Integration tests"
14+
name: "Vendor integration tests"
1715

18-
runs-on: ubuntu-latest
16+
runs-on: ${{ matrix.operating-system }}
1917

2018
strategy:
2119
matrix:
2220
php-version:
23-
- "7.4"
21+
- "8.2"
22+
- "8.3"
2423
dependencies: [ highest ]
24+
operating-system: [ ubuntu-latest, windows-latest ]
2525

2626
steps:
2727

@@ -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:: ❗integration tests failed (╯°益°)╯彡┻━┻'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
/.idea*
2+
/app
23
vendor
34
composer.phar
45
composer.lock
56
.phpunit.result.cache
67
tools/.env.local
78
tools/logs
9+
tests/ApplicationBridge/auth.json
810
examples/logs
11+
*.log
912
.env.local

0 commit comments

Comments
 (0)