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

Commit eda95ae

Browse files
authored
Merge pull request #368 from mesilov/dev
bitrix24-php-sdk beta-1
2 parents 888c4a1 + 949eb61 commit eda95ae

File tree

119 files changed

+4614
-1179
lines changed

Some content is hidden

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

119 files changed

+4614
-1179
lines changed

.github/workflows/integration.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ on:
99
env:
1010
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
1111
BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK: ${{ secrets.BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK }}
12-
TEST2_ENV: 12345
1312

1413
jobs:
1514
tests:
1615
name: "Integration tests"
17-
18-
runs-on: ubuntu-latest
19-
16+
runs-on: ${{ matrix.operating-system }}
2017
strategy:
18+
fail-fast: false
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

@@ -36,7 +36,6 @@ jobs:
3636
ini-values: variables_order=EGPCS
3737
env:
3838
BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK: ${{ secrets.BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK }}
39-
TEST2_ENV: 12345
4039

4140
- name: "Install dependencies"
4241
run: |

.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/vendor-check.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ on:
88
env:
99
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
1010
BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK: ${{ secrets.BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK }}
11-
TEST2_ENV: 12345
1211

1312
jobs:
1413
tests:
1514
name: "Vendor integration tests"
1615

17-
runs-on: ubuntu-latest
16+
runs-on: ${{ matrix.operating-system }}
1817

1918
strategy:
2019
matrix:
2120
php-version:
22-
- "7.4"
21+
- "8.2"
22+
- "8.3"
2323
dependencies: [ highest ]
24+
operating-system: [ ubuntu-latest, windows-latest ]
2425

2526
steps:
2627

CHANGELOG.md

Lines changed: 131 additions & 25 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
default:
2+
@echo "make needs target:"
3+
@egrep -e '^\S+' ./Makefile | grep -v default | sed -r 's/://' | sed -r 's/^/ - /'
4+
5+
phpstan:
6+
vendor/bin/phpstan analyse
7+
8+
test-unit:
9+
vendor/bin/phpunit --testsuite unit_tests

0 commit comments

Comments
 (0)