1- name : ' BrowserStack Test'
1+ name : " BrowserStack Test"
22
33on :
44 pull_request_target :
5- branches : [ master ]
6-
7- jobs :
5+ branches : [master]
6+
7+ jobs :
88 ubuntu-job :
9- name : ' BrowserStack Test on Ubuntu'
10- runs-on : ubuntu-latest # Can be self-hosted runner also
9+ name : " BrowserStack Test on Ubuntu"
10+ runs-on : ubuntu-latest # Can be self-hosted runner also
1111 environment :
1212 name : Integrate Pull Request
13- env :
13+ env :
1414 GITACTIONS : true
1515 steps :
16-
17- - name : ' BrowserStack Env Setup' # Invokes the setup-env action
16+ - name : " BrowserStack Env Setup" # Invokes the setup-env action
1817 uses : browserstack/github-actions/setup-env@master
1918 with :
20- username : ${{ secrets.BROWSERSTACK_USERNAME }}
19+ username : ${{ secrets.BROWSERSTACK_USERNAME }}
2120 access-key : ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
2221
23- - name : ' BrowserStack Local Tunnel Setup' # Invokes the setup-local action
22+ - name : " BrowserStack Local Tunnel Setup" # Invokes the setup-local action
2423 uses : browserstack/github-actions/setup-local@master
2524 with :
2625 local-testing : start
2726 local-identifier : random
2827
29- - name : ' Checkout the repository'
28+ - name : " Checkout the repository"
3029 uses : actions/checkout@v4
3130 with :
3231 ref : ${{ github.event.pull_request.head.sha }}
3332 fetch-depth : 2
3433
35- - name : ' Setting up Ruby'
34+ - name : " Setting up Ruby"
3635 uses : ruby/setup-ruby@v1
3736 # Ruby version is defined in .ruby-version file
3837
39- - name : ' Update and Install Dependencies'
38+ - name : " Update and Install Dependencies"
4039 run : |
4140 sudo apt update
4241 sudo apt install libcurl4 libcurl4-openssl-dev
43- - name : ' Configure Bundle testing and install gems'
42+
43+ - name : " Configure Bundle testing and install gems"
4444 run : |
4545 bundle config unset --local without
4646 bundle config set --local with 'test' 'development'
4747 bundle install
48- - name : ' Run BrowserStack simple verification'
48+
49+ - name : " Run BrowserStack simple verification"
4950 run : |
5051 bundle exec rake browserstack --trace
5152
52- - name : ' BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection
53+ - name : " BrowserStackLocal Stop" # Terminating the BrowserStackLocal tunnel connection
5354 uses : browserstack/github-actions/setup-local@master
5455 with :
55- local-testing : stop
56+ local-testing : stop
0 commit comments