-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16794d3
commit 58917bf
Showing
50 changed files
with
5,238 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
|
||
name: run_acceptance_tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Perform Acceptance BDD tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v2 | ||
- name: Checkout mock-server action | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: pubnub/client-engineering-deployment-tools | ||
ref: github-actions | ||
token: ${{ secrets.GH_TOKEN }} | ||
path: client-engineering-deployment-tools | ||
- name: Run mock server action | ||
uses: ./client-engineering-deployment-tools/actions/mock-server | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
- name: Setup environment | ||
run: | | ||
sudo apt-get install -y ninja-build libboost-all-dev libssl-dev | ||
sudo gem install cucumber | ||
- name: Git clone cucumber-cpp | ||
run: | | ||
git clone https://github.com/cucumber/cucumber-cpp.git | ||
- name: Cache cucumber-cpp | ||
id: cache-cucumber-cpp | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
cucumber-cpp | ||
key: ${{ runner.os }}-cucumber-cpp-${{ hashFiles('cucumber-cpp/**') }} | ||
restore-keys: | | ||
${{ runner.os }}-cucumber-cpp | ||
- name: Configure cucumber-cpp | ||
if: steps.cache-cucumber-cpp.outputs.cache-hit != 'true' | ||
run: | | ||
cmake -B build -DCMAKE_BUILD_TYPE=Debug | ||
working-directory: ./cucumber-cpp | ||
|
||
- name: Build cucumber-cpp | ||
if: steps.cache-cucumber-cpp.outputs.cache-hit != 'true' | ||
run: | | ||
cmake --build build --config Debug | ||
working-directory: ./cucumber-cpp | ||
|
||
- name: Build acceptance tests | ||
run: | | ||
cd cpp | ||
make -f posix_openssl.mk openssl/pubnub_sync | ||
cd .. | ||
g++ -std=c++11 -g -o BoostSteps.o -c features/step_definitions/BoostSteps.cpp -Icucumber-cpp/include -Icucumber-cpp/build/src/ -Iposix -Icore -I. -Icpp -D PUBNUB_CRYPTO_API=1 -D PUBNUB_USE_SSL=0 | ||
g++ -o steps BoostSteps.o cpp/pubnub_sync.a cucumber-cpp/build/src/libcucumber-cpp.a -Lboost -lboost_unit_test_framework -lpthread -lboost_regex -lboost_thread -lboost_program_options -lboost_filesystem -lssl -lcrypto -D PUBNUB_USE_SSL=0 | ||
- name: Run acceptance tests | ||
env: | ||
PAM_PUB_KEY: "pub_key" | ||
PAM_SUB_KEY: "sub_key" | ||
PAM_SEC_KEY: "sec_key" | ||
run: | | ||
mv sdk-specifications/features/access features | ||
sudo python3 run_contract_tests.py features/access/grant-token.feature | ||
ls -la results | ||
- name: Upload acceptance tests reports | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: acceptance-test-reports | ||
path: ./results/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
## [v3.2.0](https://github.com/pubnub/c-core/releases/tag/v3.2.0) | ||
September 15 2021 | ||
## [v3.3.0](https://github.com/pubnub/c-core/releases/tag/v3.3.0) | ||
October 11 2021 | ||
|
||
[Full Changelog](https://github.com/pubnub/c-core/compare/v3.1.0...v3.2.0) | ||
[Full Changelog](https://github.com/pubnub/c-core/compare/v3.2.0...v3.3.0) | ||
|
||
- Error codes for missing subscribe timetoken. | ||
- Implemented PAMv3 support. | ||
- Handle subscribe error for empty channel-group. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.