Skip to content

Commit 08f3a39

Browse files
committed
Merge branch 'main' into dev
2 parents 297dd99 + 26be1ec commit 08f3a39

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'BrowserStack E2E Test'
2+
on: [workflow_dispatch, pull_request]
3+
jobs:
4+
ubuntu-job:
5+
name: 'BrowserStack Test on Ubuntu'
6+
runs-on: ubuntu-latest # Can be self-hosted runner also
7+
steps:
8+
9+
- name: 'BrowserStack Env Setup' # Invokes the setup-env action
10+
uses: browserstack/github-actions/setup-env@master
11+
with:
12+
username: ${{ secrets.BROWSERSTACK_USERNAME }}
13+
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
14+
15+
- name: 'BrowserStack Local Tunnel Setup' # Invokes the setup-local action
16+
uses: browserstack/github-actions/setup-local@master
17+
with:
18+
local-testing: start
19+
local-identifier: random
20+
21+
# The next 3 steps are for building the web application to be tested and starting the web server on the runner environment
22+
23+
- name: 'Checkout the repository'
24+
uses: actions/checkout@v2
25+
26+
- name: 'Building web application to be tested'
27+
run: npm install
28+
29+
- name: 'Running test on BrowserStack' # Invokes the actual test script that would run on BrowserStack browsers
30+
run: npm run test:e2e-browserstack # See sample test script above
31+
32+
- name: 'BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection
33+
uses: browserstack/github-actions/setup-local@master
34+
with:
35+
local-testing: stop

0 commit comments

Comments
 (0)