File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments