Skip to content

Commit f55e10c

Browse files
committed
Run RuboCop using GitHub Actions
1 parent 0d6820c commit f55e10c

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/rubocop.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: RuboCop
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 0 * * *"
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Set up Ruby 2.6
17+
uses: actions/setup-ruby@v1
18+
with:
19+
ruby-version: 2.6.x
20+
- name: Install required package
21+
run: |
22+
sudo apt-get install alien
23+
- name: Download Oracle instant client
24+
run: |
25+
wget -q https://download.oracle.com/otn_software/linux/instantclient/193000/oracle-instantcli
26+
ent19.3-basic-19.3.0.0.0-1.x86_64.rpm
27+
wget -q https://download.oracle.com/otn_software/linux/instantclient/193000/oracle-instantcli
28+
ent19.3-sqlplus-19.3.0.0.0-1.x86_64.rpm
29+
wget -q https://download.oracle.com/otn_software/linux/instantclient/193000/oracle-instantcli
30+
ent19.3-devel-19.3.0.0.0-1.x86_64.rpm
31+
- name: Install Oracle instant client
32+
run: |
33+
sudo alien -i oracle-instantclient19.3-basic-19.3.0.0.0-1.x86_64.rpm
34+
sudo alien -i oracle-instantclient19.3-sqlplus-19.3.0.0.0-1.x86_64.rpm
35+
sudo alien -i oracle-instantclient19.3-devel-19.3.0.0.0-1.x86_64.rpm
36+
37+
- name: Build and run RuboCop
38+
run: |
39+
bundle install --jobs 4 --retry 3
40+
bundle exec rubocop --parallel

0 commit comments

Comments
 (0)