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'
36- uses : ruby/setup-ruby@v1
37- # Ruby version is defined in .ruby-version file
38-
39- - name : ' Update and Install Dependencies'
34+ - name : " Update and Install Dependencies"
4035 run : |
4136 sudo apt update
4237 sudo apt install libcurl4 libcurl4-openssl-dev
43- - name : ' Configure Bundle testing and install gems'
38+
39+ - name : " Setting up Ruby"
40+ uses : ruby/setup-ruby@v1
41+ with :
42+ bundler-cache : true
43+
44+ - name : " Configure Bundle testing and install gems"
4445 run : |
4546 bundle config unset --local without
46- bundle config set --local with 'test' 'development'
47+ bundle config set --local with 'test'
4748 bundle install
48- - name : ' Run BrowserStack simple verification'
49+
50+ - name : " Run BrowserStack simple verification"
4951 run : |
5052 bundle exec rake browserstack --trace
5153
52- - name : ' BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection
54+ - name : " BrowserStackLocal Stop" # Terminating the BrowserStackLocal tunnel connection
5355 uses : browserstack/github-actions/setup-local@master
5456 with :
55- local-testing : stop
57+ local-testing : stop
0 commit comments