From fcb08f5201c935935c317eaacb982600a9ae87ec Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Tue, 15 Feb 2022 00:02:43 +0200 Subject: [PATCH 1/2] test(github-actions): migrate tests to GitHub Actions Migrate PubNub SDK test suite from Travis to GitHub Actions. --- .github/workflows/run-tests.yml | 24 ++++++++++++++++++++++++ .travis.yml | 21 --------------------- 2 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/run-tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..0cd6fd8 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,24 @@ +name: Tests + +on: + push: + workflow_dispatch: + +jobs: + tests: + name: Integration and Unit tests + runs-on: ubuntu-latest + env: + CXX: 'g++-4.8' + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Setup NodeJS 6 + uses: actions/setup-node@v2 + with: + node-version: 6 + - name: Build and run tests for NodeJS 6 + run: | + npm install -g gulp-cli yarn + yarn install + gulp test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 43f31e6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: node_js -sudo: false -node_js: - - '6' -env: - - CXX=g++-4.8 -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-4.8 -before_install: - - npm install -g gulp-cli yarn -install: - - yarn install -script: - - gulp test - -after_success: - - bash <(curl -s https://codecov.io/bash) From 4ebb58b34b35243f027c263a91a23d8c0d912981 Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Tue, 15 Feb 2022 00:05:19 +0200 Subject: [PATCH 2/2] refactor(test): update used NodeJS version --- .github/workflows/run-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0cd6fd8..6c65e8d 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,11 +13,11 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 - - name: Setup NodeJS 6 + - name: Setup NodeJS 12 uses: actions/setup-node@v2 with: - node-version: 6 - - name: Build and run tests for NodeJS 6 + node-version: 12 + - name: Build and run tests for NodeJS 12 run: | npm install -g gulp-cli yarn yarn install