Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
57 changes: 57 additions & 0 deletions .github/workflows/acceptance-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Acceptance tests

on:
push:
workflow_dispatch:

jobs:
acceptance-tests:
name: Run Acceptance tests
runs-on: macos-11
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache installed Pods
uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Cache installed Gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Checkout mock-server action
uses: actions/checkout@v2
with:
repository: pubnub/client-engineering-deployment-tools
ref: v1
token: ${{ secrets.GH_TOKEN }}
path: deployment-tools
- name: Run mock server action
uses: ./deployment-tools/actions/mock-server
with:
token: ${{ secrets.GH_TOKEN }}
features-path: Tests/PubNubContractTest/Features/
- name: Preapre Xcode environment
run: |
bundle install --jobs=3 --retry=3
pod install
- name: Run stable acceptance tests
run: |
bundle exec fastlane contract_test --env contract
mv Results/CucumberishTestResults-PubNubContractTests.json Results/main.json
- name: Run beta acceptance tests
run: |
bundle exec fastlane contract_test --env contract-beta && FASTLANE_EXITCODE="${PIPESTATUS[0]}"
mv Results/CucumberishTestResults-PubNubContractTestsBeta.json Results/beta.json
- name: Upload acceptance tests reports
uses: actions/upload-artifact@v2
with:
name: acceptance-test-reports
path: Results/*.json
retention-days: 7
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
language: objective-c
os: osx
osx_image: xcode12
rvm: 2.6.6
os: osx

cache:
bundler: true
cocoapods: true
directories:
- .build # Swift Package Manager
- /Users/travis/.rvm/ # RVM

before_install:
- gem install -v 2.1.4 bundler
- sudo gem update --system

stages:
- name: "Unit Tests"
if: type = push
- name: Validate
if: type = pull_request

jobs:
include:
- stage: Validate
Expand All @@ -32,6 +37,7 @@ jobs:
- name: tvOS
before_script: xcrun simctl list -j
script: bundle exec fastlane test --env tvos

before_cache:
- rvm cleanup all
- bundle clean
Expand Down
Loading