disable mobile BrowserStack tests on PRs #7
This file contains hidden or 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
| name: 'BrowserStack iOS Mobile Test' | |
| on: [push, workflow_dispatch] | |
| jobs: | |
| browserstack-iOS-test: | |
| name: 'BrowserStack iOS Mobile Test' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'BrowserStack Env Setup' | |
| uses: browserstack/github-actions/setup-env@master | |
| with: | |
| username: ${{ secrets.BROWSERSTACK_USERNAME }} | |
| access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
| - name: 'BrowserStack Local Tunnel Setup' | |
| uses: browserstack/github-actions/setup-local@master | |
| with: | |
| local-testing: start | |
| local-identifier: random | |
| - name: 'Checkout the repository' | |
| uses: actions/checkout@v3 | |
| - name: 'Run NPM CI' | |
| run: npm ci | |
| - name: Run Build IIFE | |
| run: npm run build:iife | |
| - name: 'Run NPM build test bundle' | |
| run: npm run build:test-bundle | |
| - name: 'Run Browserstack iOS Mobile Tests' | |
| run: npm run test:browserstack-iOS | |
| - name: 'BrowserStackLocal Stop' | |
| uses: browserstack/github-actions/setup-local@master | |
| with: | |
| local-testing: stop |