-
Notifications
You must be signed in to change notification settings - Fork 312
37 lines (32 loc) · 1.28 KB
/
rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: RuboCop
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
env:
LD_LIBRARY_PATH: /opt/oracle/instantclient_23_5
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: Download Oracle instant client
run: |
wget -q https://download.oracle.com/otn_software/linux/instantclient/2350000/instantclient-basic-linux.x64-23.5.0.24.07.zip
wget -q https://download.oracle.com/otn_software/linux/instantclient/2350000/instantclient-sdk-linux.x64-23.5.0.24.07.zip
wget -q https://download.oracle.com/otn_software/linux/instantclient/2350000/instantclient-sqlplus-linux.x64-23.5.0.24.07.zip
- name: Install Oracle instant client
run: |
sudo unzip instantclient-basic-linux.x64-23.5.0.24.07.zip -d /opt/oracle/
sudo unzip -o instantclient-sdk-linux.x64-23.5.0.24.07.zip -d /opt/oracle/
sudo unzip -o instantclient-sqlplus-linux.x64-23.5.0.24.07.zip -d /opt/oracle/
echo "/opt/oracle/instantclient_23_5" >> $GITHUB_PATH
- name: Build and run RuboCop
run: |
bundle install --jobs 4 --retry 3
bundle exec rubocop