Skip to content

[pull] master from pubnub:master #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
d4b9405
Update .pubnub.yml (#234)
techwritermat Apr 15, 2022
04b7749
remove MPNS (#235)
michaljolender Apr 26, 2022
5283960
Change gradle dependency to be picked up by versions.json (#226)
kleewho Apr 29, 2022
99b9e93
Remove codeowners for README to simplify the release (#238)
kleewho May 5, 2022
36dbfc5
Update objects capabilities in pubnub.yml
kleewho May 6, 2022
bfcae43
Do heartbeat and leave calls in sequence (#237)
kleewho May 9, 2022
f2a050b
Force integrationTest compilation on ./gradlew build (#239)
marcin-cebo May 10, 2022
fea9c90
Upgraded gson to 2.9.0 (#240)
marcin-cebo May 23, 2022
7f1c062
Add possibility to create PNConfiguration using UserId instead of uui…
marcin-cebo Jul 6, 2022
988deea
Add support for permissions of spaces and users in grantToken
kleewho Jul 20, 2022
41591f6
Dependencies version bump
kleewho Jul 21, 2022
b05fc6e
Expose jsonMessage for file events (#246)
kleewho Sep 20, 2022
248e848
Object v2 contract tests mc (#247)
marcin-cebo Oct 6, 2022
d4eebfd
Object v2 channel contract tests mc (#248)
marcin-cebo Oct 27, 2022
85835f6
Manage tests mc (#250)
marcin-cebo Nov 2, 2022
9d7298c
Added possibility to add status when setting ChannelMembers (#251)
marcin-cebo Nov 4, 2022
3105225
Upgraded okhttp lib to 4.9.3 (#252)
marcin-cebo Nov 7, 2022
1f3f06b
Updated dependencies, handles compilation workings. (#254)
marcin-cebo Dec 6, 2022
4919b9e
Do not read body if it's null (#256)
kleewho Dec 15, 2022
0d4298c
Add required signing for release (#257)
kleewho Dec 15, 2022
6c5eb58
test(github-action): refactor command handler (#259)
parfeon Jan 3, 2023
b6780e0
test(github-actions): migrate tests to GitHub Actions (#230)
parfeon Jan 3, 2023
5744a85
Undeprecated Grant Token methods. (#270)
marcin-cebo Feb 23, 2023
60f7da4
Upgraded jackson-databind lib to remove sec vulnerabilities. (#271)
marcin-cebo Mar 6, 2023
fe58165
Upgraded json lib (#272)
marcin-cebo Mar 6, 2023
3b43a75
Add heartbeat error limit (#275)
kleewho May 18, 2023
b2c3a36
Added possibility to set state using heartbeat endpoint. (#277)
marcin-cebo Jun 19, 2023
ccc3395
build: add custom GHA large runner (#278)
parfeon Jul 10, 2023
5e5e061
Added Wojtek to codeowners. (#281)
marcin-cebo Oct 6, 2023
6feef15
Used new CryptoModule from kotlin SDK. (#280)
marcin-cebo Oct 16, 2023
cdba99b
Moved Kotlin a code to kotlin structure. (#282)
marcin-cebo Oct 16, 2023
69e6911
Updated info about dependencies. (#283)
marcin-cebo Oct 18, 2023
de9e852
Mc fix dependency doc (#284)
marcin-cebo Oct 24, 2023
eb29f40
Updated info about dependencies. (#285)
marcin-cebo Oct 24, 2023
ebf01a4
Updated info about dependencies. (#286)
marcin-cebo Oct 25, 2023
adafcd2
revert used runner configuration (#288)
parfeon Oct 30, 2023
ccc1fc8
Changed license type from MIT to PubNub Software Development Kit Lice…
marcin-cebo Oct 30, 2023
d88281c
Bump versions for newer JDK compatibility (#289)
wkal-pubnub Nov 9, 2023
0ea6eac
Allow reading unencrypted messages from history when crypto is set
wkal-pubnub Nov 9, 2023
848192d
Don't crash on malformed messages received with crypto enabled (#291)
wkal-pubnub Nov 20, 2023
32d76c6
Remove 'contact support' in case of network error. (#292)
wkal-pubnub Nov 23, 2023
f2d3c04
Add error field to file result and set on decrypt error (#294)
wkal-pubnub Nov 28, 2023
82de0bf
Remove Jackson library (#295)
wkal-pubnub Nov 30, 2023
9ff499f
Move kt file to kotlin sourceset (#296)
wkal-pubnub Nov 30, 2023
94ae18e
Add reading message type in FetchMessages (#298)
wkal-pubnub Dec 18, 2023
e4ec49a
Modified PNReconnectionPolicy (#297)
marcin-cebo Dec 18, 2023
1035347
Update README.md (#301)
wkal-pubnub May 24, 2024
6054475
Use large GitHub runner (#300)
parfeon May 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
* @kleewho @bartk @Chesteer89 @budgetpreneur
.github/* @parfeon @kleewho @bartk @Chesteer89 @budgetpreneur
README.md @techwritermat @kazydek
* @kleewho @marcin-cebo @wkal-pubnub @parfeon
.github/* @parfeon @kleewho @marcin-cebo @wkal-pubnub
27 changes: 22 additions & 5 deletions .github/workflows/commands-handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,42 @@ name: Commands processor
on:
issue_comment:
types: [created]
defaults:
run:
shell: bash

jobs:
process:
name: Process command
if: ${{ github.event.issue.pull_request && endsWith(github.repository, '-private') != true && startsWith(github.event.comment.body, '@client-engineering-bot ') }}
runs-on: ubuntu-latest
if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true
runs-on:
group: Default
steps:
- name: Check referred user
id: user-check
env:
CLEN_BOT: ${{ secrets.CLEN_BOT }}
run: echo "expected-user=${{ startsWith(github.event.comment.body, format('@{0} ', env.CLEN_BOT)) }}" >> $GITHUB_OUTPUT
- name: Regular comment
if: steps.user-check.outputs.expected-user != 'true'
run: echo -e "\033[38;2;19;181;255mThis is regular commit which should be ignored.\033[0m"
- name: Checkout repository
uses: actions/checkout@v2
if: steps.user-check.outputs.expected-user == 'true'
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Checkout release actions
uses: actions/checkout@v2
if: steps.user-check.outputs.expected-user == 'true'
uses: actions/checkout@v4
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
token: ${{ secrets.GH_TOKEN }}
path: .github/.release/actions
- name: Process changelog entries
if: steps.user-check.outputs.expected-user == 'true'
uses: ./.github/.release/actions/actions/commands
with:
token: ${{ secrets.GH_TOKEN }}
listener: client-engineering-bot
listener: ${{ secrets.CLEN_BOT }}
jira-api-key: ${{ secrets.JIRA_API_KEY }}
28 changes: 17 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ name: Automated product release

on:
pull_request:
branches: [ master ]
types: [ closed ]

branches: [master]
types: [closed]

jobs:
check-release:
name: Check release required
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged && endsWith(github.repository, '-private') != true }}
if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true
runs-on:
group: Default
outputs:
release: ${{ steps.check.outputs.ready }}
steps:
- name: Checkout actions
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
Expand All @@ -28,17 +28,18 @@ jobs:
token: ${{ secrets.GH_TOKEN }}
publish:
name: Publish package
runs-on: ubuntu-latest
needs: check-release
if: ${{ needs.check-release.outputs.release == 'true' }}
if: needs.check-release.outputs.release == 'true'
runs-on:
group: Default
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# This should be the same as the one specified for on.pull_request.branches
ref: master
- name: Checkout actions
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
Expand All @@ -53,6 +54,7 @@ jobs:
gpg-key-id: ${{ secrets.GPG_KEY_ID }}
gpg-key-name: ${{ secrets.GPG_KEY_NAME }}
gpg-key-passphrase: ${{ secrets.GPG_KEY_PASSPHRASE }}
maven-plugin: "gradle-maven-publish-plugin"
- name: Create Release
uses: ./.github/.release/actions/actions/services/github-release
with:
Expand All @@ -64,4 +66,8 @@ jobs:
source-folder: docs
jira-api-key: ${{ secrets.JIRA_API_KEY }}
last-service: true

- name: Upload test reports
uses: ./.github/.release/actions/actions/test-reports/upload
with:
token: ${{ secrets.GH_TOKEN }}
acceptance-tests-workflow: Tests
13 changes: 12 additions & 1 deletion .github/workflows/release/versions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
"gradle.properties": [
{
"pattern": "^VERSION_NAME=(v?(\\d+\\.?){2,}([a-zA-Z0-9-]+(\\.?\\d+)?)?)$",
"clearedPrefix": true,
"clearedSuffix": false
}
],
".pubnub.yml": [
{ "pattern": "^version: (v?(\\d+\\.?){2,}([a-zA-Z0-9-]+(\\.?\\d+)?)?)$", "cleared": false },
{
"pattern": "^version: (v?(\\d+\\.?){2,}([a-zA-Z0-9-]+(\\.?\\d+)?)?)$",
"clearedPrefix": true,
"clearedSuffix": false
},
{
"pattern": "^\\s+\\-\\s+build/libs/pubnub-gson-(v?(\\d+\\.?){2,}([a-zA-Z0-9-]+(\\.?\\d+)?)?)-all.jar$",
"clearedPrefix": true,
Expand Down
103 changes: 103 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: Tests

on:
push:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash

jobs:
tests:
name: Integration and Unit tests
runs-on:
group: Default
env:
SUB_KEY: ${{ secrets.SDK_SUB_KEY }}
PUB_KEY: ${{ secrets.SDK_PUB_KEY }}
PAM_SUB_KEY: ${{ secrets.SDK_PAM_SUB_KEY }}
PAM_PUB_KEY: ${{ secrets.SDK_PAM_PUB_KEY }}
PAM_SEC_KEY: ${{ secrets.SDK_PAM_SEC_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Checkout actions
uses: actions/checkout@v4
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
token: ${{ secrets.GH_TOKEN }}
path: .github/.release/actions
- name: Build and run tests
run: |
./gradlew assemble
./gradlew check
- name: Cancel workflow runs for commit on error
if: failure()
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
acceptance-tests:
name: Acceptance tests
runs-on:
group: Default
env:
pubKey: somePubKey
subKey: someSubKey
pamPubKey: somePamPubKey
pamSubKey: somePamSubKey
pamSecKey: someSecKey
serverHostPort: "localhost:8090"
serverMock: true
dataFileLocation: "src/test/resources/sdk-specifications/features/data"
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: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run acceptance tests (optional)
run: |
ln -s /home/runner/work/java/java/sdk-specifications src/test/resources/sdk-specifications
./gradlew cucumber --tests RunBetaCucumberTest -Dcucumber.features="sdk-specifications/features/" -i
continue-on-error: true
- name: Run acceptance tests (required)
run: ./gradlew cucumber --tests RunMainCucumberTest -Dcucumber.features="sdk-specifications/features/" -i
- name: Expose acceptance tests reports
uses: actions/upload-artifact@v4
if: always()
with:
name: acceptance-test-reports
path: ./build/reports/cucumber-reports
retention-days: 7
- name: Cancel workflow runs for commit on error
if: failure()
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
all-tests:
name: Tests
needs: [tests, acceptance-tests]
runs-on:
group: Default
steps:
- name: Tests summary
run: echo -e "\033[38;2;95;215;0m\033[1mAll tests successfully passed"
42 changes: 42 additions & 0 deletions .github/workflows/run-validations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Validations

on:
push:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash

jobs:
pubnub-yml:
name: "Validate .pubnub.yml"
runs-on:
group: Default
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Checkout validator action
uses: actions/checkout@v4
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
token: ${{ secrets.GH_TOKEN }}
path: .github/.release/actions
- name: "Run '.pubnub.yml' file validation"
uses: ./.github/.release/actions/actions/validators/pubnub-yml
with:
token: ${{ secrets.GH_TOKEN }}
- name: Cancel workflow runs for commit on error
if: failure()
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
all-validations:
name: Validations
needs: [pubnub-yml]
runs-on:
group: Default
steps:
- name: Validations summary
run: echo -e "\033[38;2;95;215;0m\033[1mAll validations passed"
50 changes: 0 additions & 50 deletions .github/workflows/run_acceptance_tests.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/validate-pubnub-yml.yml

This file was deleted.

Loading