Bump actions/checkout from 4 to 6 #778
This file contains hidden or 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@v6 | |
| - 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 |