-
-
Notifications
You must be signed in to change notification settings - Fork 251
51 lines (44 loc) · 1.38 KB
/
browserstack.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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.1.1
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 }}