Skip to content

Commit

Permalink
Feat/support custom message type (#110)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
seba-aln and pubnub-release-bot authored Nov 20, 2024
1 parent f7cdc63 commit 9c0e653
Show file tree
Hide file tree
Showing 41 changed files with 734 additions and 5,119 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,38 @@ jobs:
- name: Cancel workflow runs for commit on error
if: failure()
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
acceptance-tests:
name: Perform Acceptance BDD tests
runs-on:
group: organization/Default
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Checkout mock-server action
uses: actions/checkout@v4
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
token: ${{ secrets.GH_TOKEN }}
path: .github/.release/actions
- name: Run mock server action
uses: ./.github/.release/actions/actions/mock-server
with:
token: ${{ secrets.GH_TOKEN }}
- name: Install Composer dev depenencies
run: |
composer install --dev
- name: Run acceptance tests
run: |
composer acceptance-test
- name: Cancel workflow runs for commit on error
if: failure()
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
- name: Expose acceptance tests reports
uses: actions/upload-artifact@v3
with:
name: acceptance-test-reports
path: ./tests/Acceptance/reports
all-tests:
name: Tests
needs: [tests]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-validations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Run PHPStan
run: vendor/bin/phpstan analyze --memory-limit 256M
- name: Run phpcs on changed files
run: git diff --name-only origin/master HEAD | grep -E '\.php$' | xargs vendor/bin/phpcs --standard=PSR12
run: git diff --name-only --diff-filter=d origin/master HEAD | grep -E '\.php$' | xargs vendor/bin/phpcs --standard=PSR12
- name: Cancel workflow runs for commit on error
if: failure()
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
Expand Down
11 changes: 8 additions & 3 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: php
version: 7.0.2
version: 7.1.0
schema: 1
scm: github.com/pubnub/php
changelog:
- date: 2024-11-20
version: 7.1.0
changes:
- type: feature
text: "Add custom message type support for the following APIs - publish, signal, share file, subscribe and history."
- date: 2024-10-22
version: 7.0.2
changes:
Expand Down Expand Up @@ -427,8 +432,8 @@ sdks:
- x86-64
- distribution-type: library
distribution-repository: GitHub release
package-name: php-7.0.2.zip
location: https://github.com/pubnub/php/releases/tag/7.0.2
package-name: php-7.1.0.zip
location: https://github.com/pubnub/php/releases/tag/7.1.0
requires:
- name: rmccue/requests
min-version: 1.0.0
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 7.1.0
November 20 2024

#### Added
- Add custom message type support for the following APIs - publish, signal, share file, subscribe and history.

## 7.0.2
October 22 2024

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
{
"require": {
<!-- include the latest version from the badge at the top -->
"pubnub/pubnub": "7.0.2"
"pubnub/pubnub": "7.1.0"
}
}
```
Expand Down
37 changes: 0 additions & 37 deletions acceptance.json

This file was deleted.

Loading

0 comments on commit 9c0e653

Please sign in to comment.