Skip to content

Commit f7f02a3

Browse files
committed
Run RuboCop in CI
1 parent 48bef7b commit f7f02a3

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed
Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,60 @@
1-
name: 'BrowserStack Test'
1+
name: "BrowserStack Test"
22

33
on:
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 RuboCop" # TODO: Address remaining offences
50+
run: |
51+
bundle exec rubocop --display-only-safe-correctable
52+
53+
- name: "Run BrowserStack simple verification"
4954
run: |
5055
bundle exec rake browserstack --trace
5156
52-
- name: 'BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection
57+
- name: "BrowserStackLocal Stop" # Terminating the BrowserStackLocal tunnel connection
5358
uses: browserstack/github-actions/setup-local@master
5459
with:
55-
local-testing: stop
60+
local-testing: stop

0 commit comments

Comments
 (0)