Sha256: 703449a9df851a070d14d66a75f8da8d02c5224691c3fea9ca42372e15f79317

Contents?: true

Size: 1.51 KB

Versions: 3

Compression:

Stored size: 1.51 KB

Contents

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: Install dependencies
        run: |
          sudo gem install bundler &&
          bundle install
      - name: Run acceptance tests (optional)
        run: bundle exec cucumber sdk-specifications/features/ -p mock -p run_beta -p report_beta -f pretty
        continue-on-error: true
      - name: Run acceptance tests (required)
        run: bundle exec cucumber sdk-specifications/features/ -p mock -p run_main -p report_main -f pretty
      - name: Combine test results
        if: always()
        run: |
          sudo npm install -g junit-report-merger &&
          jrm ./main.xml "./main/**/*.xml" &&
          jrm ./beta.xml "./beta/**/*.xml"
      - name: Expose main report
        uses: actions/upload-artifact@v2
        if: always()
        with:
          name: acceptance-test-reports
          path: |
            main.xml
            beta.xml
          retention-days: 7

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pubnub-5.1.0 .github/workflows/run_acceptance_tests.yml
pubnub-5.0.0 .github/workflows/run_acceptance_tests.yml
pubnub-4.8.0 .github/workflows/run_acceptance_tests.yml