Use gvenzl/oracle-free:latest
#771
Workflow file for this run
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 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby 3.1 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.1" | |
- name: Install required package | |
run: | | |
sudo apt-get install alien | |
- name: Download Oracle instant client | |
run: | | |
wget -q https://download.oracle.com/otn_software/linux/instantclient/216000/oracle-instantclient-basic-21.6.0.0.0-1.x86_64.rpm | |
wget -q https://download.oracle.com/otn_software/linux/instantclient/216000/oracle-instantclient-sqlplus-21.6.0.0.0-1.x86_64.rpm | |
wget -q https://download.oracle.com/otn_software/linux/instantclient/216000/oracle-instantclient-devel-21.6.0.0.0-1.x86_64.rpm | |
- name: Install Oracle instant client | |
run: | | |
sudo alien -i oracle-instantclient-basic-21.6.0.0.0-1.x86_64.rpm | |
sudo alien -i oracle-instantclient-sqlplus-21.6.0.0.0-1.x86_64.rpm | |
sudo alien -i oracle-instantclient-devel-21.6.0.0.0-1.x86_64.rpm | |
- name: Build and run RuboCop | |
run: | | |
bundle install --jobs 4 --retry 3 | |
bundle exec rubocop --parallel |