RuboCop #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |