Skip to content

BrowserStack End to End Tests #1090

BrowserStack End to End Tests

BrowserStack End to End Tests #1090

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-24.04
defaults:
run:
working-directory: td.vue
if: github.repository == 'OWASP/threat-dragon'
steps:
- name: Checkout
uses: actions/checkout@v4.2.0
- name: Use node LTS 20.14.0
uses: actions/setup-node@v4.1.0
with:
node-version: '20.14.0'
- name: Cache NPM dir
uses: actions/cache@v4.2.0
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-
- name: Install packages
run: |
npm clean-install
- name: BrowserStack Env Setup
uses: browserstack/github-actions/setup-env@v1.0.1
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 }}