Sha256: cc34c8bd9406e6b9ee26d8bd0e389e163abb54f88e462813cdb52dc6c764d5ee

Contents?: true

Size: 1.49 KB

Versions: 2

Compression:

Stored size: 1.49 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@v3
      - name: Checkout mock-server action
        uses: actions/checkout@v3
        with:
          repository: pubnub/client-engineering-deployment-tools
          ref: v1
          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@v3
        if: always()
        with:
          name: acceptance-test-reports
          path: |
            main.xml
            beta.xml
          retention-days: 7

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pubnub-5.1.2 .github/workflows/run_acceptance_tests.yml
pubnub-5.1.1 .github/workflows/run_acceptance_tests.yml