Merge pull request #2349 from yahonda/backport_2348_to_release70 #2059
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: Ruby | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- 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/211000/oracle-instantclient-basic-21.1.0.0.0-1.x86_64.rpm | |
wget -q https://download.oracle.com/otn_software/linux/instantclient/211000/oracle-instantclient-sqlplus-21.1.0.0.0-1.x86_64.rpm | |
wget -q https://download.oracle.com/otn_software/linux/instantclient/211000/oracle-instantclient-devel-21.1.0.0.0-1.x86_64.rpm | |
- name: Install Oracle instant client | |
run: | | |
sudo alien -i oracle-instantclient-basic-21.1.0.0.0-1.x86_64.rpm | |
sudo alien -i oracle-instantclient-sqlplus-21.1.0.0.0-1.x86_64.rpm | |
sudo alien -i oracle-instantclient-devel-21.1.0.0.0-1.x86_64.rpm | |
- name: Build and run RuboCop | |
run: | | |
bundle install --jobs 4 --retry 3 | |
bundle exec rubocop |