Skip to content

BrowserStack End to End Tests #173

BrowserStack End to End Tests

BrowserStack End to End Tests #173

Workflow file for this run

name: BrowserStack End to End Tests
concurrency: browserstack_e2e
on:
# Run daily at 8:40
schedule:
- cron: '40 8 * * *'
workflow_dispatch:
# for security reasons the github actions are pinned to specific release versions
jobs:
browserstack_e2e:
name: Browserstack e2e
runs-on: ubuntu-22.04
defaults:
run:
working-directory: td.vue
if: github.repository == 'OWASP/threat-dragon'
steps:
- name: Checkout
uses: actions/[email protected]
- name: Use Node.js 18.x
uses: actions/[email protected]
with:
node-version: '18'
- name: Cache NPM dir
uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install packages
run: |
npm clean-install
- name: BrowserStack Env Setup
uses: browserstack/github-actions/[email protected]
with:
username: ${{ secrets.BROWSERSTACK_USERNAME }}
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Run e2e tests
run: npm run test:e2e-nightly
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}