Skip to content

Commit 9c0e653

Browse files
Feat/support custom message type (#110)
* 1 * Custom Message Type * Remove old composer files, update acceptance test job * PHPStan fixes * Do not phpcs deleted files * phpcs quote unquote fixes * updated stubs * multiple behat outputs * support custom message type in subscribe * fixed examples, added cmt to file, tested. it is ready * phpcs... * invalid check * Fixed test with shared data * phpcssssss * fixes after review * linter fixess * PubNub SDK 7.1.0 release. --------- Co-authored-by: PubNub Release Bot <120067856+pubnub-release-bot@users.noreply.github.com>
1 parent f7cdc63 commit 9c0e653

Some content is hidden

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

41 files changed

+734
-5119
lines changed

.github/workflows/run-tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,38 @@ jobs:
6565
- name: Cancel workflow runs for commit on error
6666
if: failure()
6767
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
68+
acceptance-tests:
69+
name: Perform Acceptance BDD tests
70+
runs-on:
71+
group: organization/Default
72+
steps:
73+
- name: Checkout project
74+
uses: actions/checkout@v4
75+
- name: Checkout mock-server action
76+
uses: actions/checkout@v4
77+
with:
78+
repository: pubnub/client-engineering-deployment-tools
79+
ref: v1
80+
token: ${{ secrets.GH_TOKEN }}
81+
path: .github/.release/actions
82+
- name: Run mock server action
83+
uses: ./.github/.release/actions/actions/mock-server
84+
with:
85+
token: ${{ secrets.GH_TOKEN }}
86+
- name: Install Composer dev depenencies
87+
run: |
88+
composer install --dev
89+
- name: Run acceptance tests
90+
run: |
91+
composer acceptance-test
92+
- name: Cancel workflow runs for commit on error
93+
if: failure()
94+
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
95+
- name: Expose acceptance tests reports
96+
uses: actions/upload-artifact@v3
97+
with:
98+
name: acceptance-test-reports
99+
path: ./tests/Acceptance/reports
68100
all-tests:
69101
name: Tests
70102
needs: [tests]

.github/workflows/run-validations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Run PHPStan
5656
run: vendor/bin/phpstan analyze --memory-limit 256M
5757
- name: Run phpcs on changed files
58-
run: git diff --name-only origin/master HEAD | grep -E '\.php$' | xargs vendor/bin/phpcs --standard=PSR12
58+
run: git diff --name-only --diff-filter=d origin/master HEAD | grep -E '\.php$' | xargs vendor/bin/phpcs --standard=PSR12
5959
- name: Cancel workflow runs for commit on error
6060
if: failure()
6161
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure

.pubnub.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: php
2-
version: 7.0.2
2+
version: 7.1.0
33
schema: 1
44
scm: github.com/pubnub/php
55
changelog:
6+
- date: 2024-11-20
7+
version: 7.1.0
8+
changes:
9+
- type: feature
10+
text: "Add custom message type support for the following APIs - publish, signal, share file, subscribe and history."
611
- date: 2024-10-22
712
version: 7.0.2
813
changes:
@@ -427,8 +432,8 @@ sdks:
427432
- x86-64
428433
- distribution-type: library
429434
distribution-repository: GitHub release
430-
package-name: php-7.0.2.zip
431-
location: https://github.com/pubnub/php/releases/tag/7.0.2
435+
package-name: php-7.1.0.zip
436+
location: https://github.com/pubnub/php/releases/tag/7.1.0
432437
requires:
433438
- name: rmccue/requests
434439
min-version: 1.0.0

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 7.1.0
2+
November 20 2024
3+
4+
#### Added
5+
- Add custom message type support for the following APIs - publish, signal, share file, subscribe and history.
6+
17
## 7.0.2
28
October 22 2024
39

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
4141
{
4242
"require": {
4343
<!-- include the latest version from the badge at the top -->
44-
"pubnub/pubnub": "7.0.2"
44+
"pubnub/pubnub": "7.1.0"
4545
}
4646
}
4747
```

acceptance.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)