Skip to content

Commit 713ddb0

Browse files
authored
Add message actions api (#140)
feat(message-actions): add message actions api Add api which allow to work with message actions endpoints. test(github-actions): migrate to GitHub actions Migrate test suite run from Travis to GitHub Actions.
1 parent b3800ac commit 713ddb0

File tree

130 files changed

+9449
-297
lines changed

Some content is hidden

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

130 files changed

+9449
-297
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,8 @@ jobs:
5656
token: ${{ secrets.GH_TOKEN }}
5757
jira-api-key: ${{ secrets.JIRA_API_KEY }}
5858
last-service: true
59+
- name: Upload test reports
60+
uses: ./.github/.release/actions/actions/test-reports/upload
61+
with:
62+
token: ${{ secrets.GH_TOKEN }}
63+
acceptance-tests-workflow: Tests

.github/workflows/run-tests.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
8+
jobs:
9+
tests:
10+
name: Integration and Unit tests
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
with:
16+
token: ${{ secrets.GH_TOKEN }}
17+
- name: Setup Ruby 2.5.8
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: 2.5.8
21+
bundler-cache: true
22+
- name: Build and run tests for Ruby 2.5.8
23+
run: bundle exec rspec
24+
- name: Setup Ruby 2.6.6
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: 2.6.6
28+
bundler-cache: true
29+
- name: Build and run tests for Ruby 2.6.6
30+
run: bundle exec rspec
31+
- name: Setup Ruby 2.7.1
32+
uses: ruby/setup-ruby@v1
33+
with:
34+
ruby-version: 2.7.1
35+
bundler-cache: true
36+
- name: Build and run tests for Ruby 2.7.1
37+
run: bundle exec rspec
38+
- name: Setup JRuby
39+
uses: ruby/setup-ruby@v1
40+
with:
41+
ruby-version: jruby
42+
bundler-cache: true
43+
acceptance:
44+
name: Acceptance tests
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Checkout project
48+
uses: actions/checkout@v3
49+
- name: Checkout mock-server action
50+
uses: actions/checkout@v3
51+
with:
52+
repository: pubnub/client-engineering-deployment-tools
53+
ref: v1
54+
token: ${{ secrets.GH_TOKEN }}
55+
path: .github/.release/actions
56+
- name: Run mock server action
57+
uses: ./.github/.release/actions/actions/mock-server
58+
with:
59+
token: ${{ secrets.GH_TOKEN }}
60+
- name: Setup Ruby 3.0
61+
uses: ruby/setup-ruby@v1
62+
with:
63+
ruby-version: 3.0
64+
bundler-cache: true
65+
- name: Run acceptance tests (optional)
66+
run: bundle exec cucumber sdk-specifications/features/ -p mock -p run_beta -p report_beta -f pretty
67+
continue-on-error: true
68+
- name: Run acceptance tests (required)
69+
run: bundle exec cucumber sdk-specifications/features/ -p mock -p run_main -p report_main -f pretty
70+
- name: Combine test results
71+
if: always()
72+
run: |
73+
sudo npm install -g junit-report-merger &&
74+
jrm ./main.xml "./main/**/*.xml" &&
75+
jrm ./beta.xml "./beta/**/*.xml"
76+
- name: Expose acceptance tests reports
77+
uses: actions/upload-artifact@v3
78+
if: always()
79+
with:
80+
name: acceptance-test-reports
81+
path: |
82+
main.xml
83+
beta.xml
84+
retention-days: 7
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Validations
2+
3+
on: [push]
4+
5+
jobs:
6+
validators:
7+
name: "Validate .pubnub.yml"
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout project
11+
uses: actions/checkout@v3
12+
- name: Checkout validator action
13+
uses: actions/checkout@v3
14+
with:
15+
repository: pubnub/client-engineering-deployment-tools
16+
ref: v1
17+
token: ${{ secrets.GH_TOKEN }}
18+
path: .github/.release/actions
19+
- name: "Run '.pubnub.yml' file validation"
20+
uses: ./.github/.release/actions/actions/validators/pubnub-yml
21+
with:
22+
token: ${{ secrets.GH_TOKEN }}

.github/workflows/run_acceptance_tests.yml

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

.github/workflows/validate-pubnub-yml.yml

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

.github/workflows/validate-yml.js

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

.pubnub.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
---
2-
version: "5.1.2"
2+
version: "5.2.0"
33
changelog:
4+
- date: 2022-12-12
5+
version: v5.2.0
6+
changes:
7+
- type: feature
8+
text: "Add api which allow to work with message actions endpoints."
9+
- type: improvement
10+
text: "Migrate test suite run from Travis to GitHub Actions."
411
- date: 2022-11-23
512
version: v5.1.2
613
changes:
@@ -642,7 +649,7 @@ sdks:
642649
- x86-64
643650
- distribution-type: package
644651
distribution-repository: RubyGems
645-
package-name: pubnub-5.1.2.gem
652+
package-name: pubnub-5.2.0.gem
646653
location: https://rubygems.org/gems/pubnub
647654
requires:
648655
- name: addressable
@@ -747,8 +754,8 @@ sdks:
747754
- x86-64
748755
- distribution-type: library
749756
distribution-repository: GitHub release
750-
package-name: pubnub-5.1.2.gem
751-
location: https://github.com/pubnub/ruby/releases/download/v5.1.2/pubnub-5.1.2.gem
757+
package-name: pubnub-5.2.0.gem
758+
location: https://github.com/pubnub/ruby/releases/download/v5.2.0/pubnub-5.2.0.gem
752759
requires:
753760
- name: addressable
754761
min-version: 2.0.0

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby 3.0.0
1+
ruby jruby-9.3.8.0

.travis.yml

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

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## v5.2.0
2+
December 12 2022
3+
4+
#### Added
5+
- Add api which allow to work with message actions endpoints.
6+
7+
#### Modified
8+
- Migrate test suite run from Travis to GitHub Actions.
9+
110
## v5.1.2
211
November 23 2022
312

0 commit comments

Comments
 (0)