Skip to content

Commit

Permalink
Merge pull request #368 from mesilov/dev
Browse files Browse the repository at this point in the history
bitrix24-php-sdk beta-1
  • Loading branch information
mesilov authored Feb 18, 2024
2 parents 888c4a1 + 949eb61 commit eda95ae
Show file tree
Hide file tree
Showing 119 changed files with 4,614 additions and 1,179 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ on:
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

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:

Expand All @@ -36,7 +36,6 @@ jobs:
ini-values: variables_order=EGPCS
env:
BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK: ${{ secrets.BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK }}
TEST2_ENV: 12345

- name: "Install dependencies"
run: |
Expand Down
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
7 changes: 4 additions & 3 deletions .github/workflows/vendor-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@ on:
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: "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
156 changes: 131 additions & 25 deletions CHANGELOG.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
default:
@echo "make needs target:"
@egrep -e '^\S+' ./Makefile | grep -v default | sed -r 's/://' | sed -r 's/^/ - /'

phpstan:
vendor/bin/phpstan analyse

test-unit:
vendor/bin/phpunit --testsuite unit_tests
Loading

0 comments on commit eda95ae

Please sign in to comment.