Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Linting
on:
- pull_request
jobs:
yamllint:
name: Yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Yamllint
uses: karancode/yamllint-github-action@master
with:
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44 changes: 22 additions & 22 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ jobs:
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
- 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
- name: Build and run RuboCop
run: |
bundle install --jobs 4 --retry 3
bundle exec rubocop
76 changes: 38 additions & 38 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,41 +48,41 @@ jobs:
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install required package
run: |
sudo apt-get install alien
- name: Download Oracle client
run: |
wget -q https://download.oracle.com/otn_software/linux/instantclient/214000/oracle-instantclient-basic-21.4.0.0.0-1.x86_64.rpm
wget -q https://download.oracle.com/otn_software/linux/instantclient/214000/oracle-instantclient-sqlplus-21.4.0.0.0-1.x86_64.rpm
wget -q https://download.oracle.com/otn_software/linux/instantclient/214000/oracle-instantclient-devel-21.4.0.0.0-1.x86_64.rpm
- name: Install Oracle client
run: |
sudo alien -i oracle-instantclient-basic-21.4.0.0.0-1.x86_64.rpm
sudo alien -i oracle-instantclient-sqlplus-21.4.0.0.0-1.x86_64.rpm
sudo alien -i oracle-instantclient-devel-21.4.0.0.0-1.x86_64.rpm
- name: Install JDBC Driver
run: |
wget -q https://download.oracle.com/otn-pub/otn_software/jdbc/211/ojdbc11.jar -O ./lib/ojdbc11.jar
- name: Create database user
run: |
./ci/setup_accounts.sh
- name: Bundle install
run: |
bundle install --jobs 4 --retry 3
- name: Run RSpec
run: |
bundle exec rspec
- name: Workaround jruby-head failure by removing Gemfile.lock
run: |
rm Gemfile.lock
- name: Run bug report templates
run: |
cd guides/bug_report_templates
ruby active_record_gem.rb
ruby active_record_gem_spec.rb
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install required package
run: |
sudo apt-get install alien
- name: Download Oracle client
run: |
wget -q https://download.oracle.com/otn_software/linux/instantclient/214000/oracle-instantclient-basic-21.4.0.0.0-1.x86_64.rpm
wget -q https://download.oracle.com/otn_software/linux/instantclient/214000/oracle-instantclient-sqlplus-21.4.0.0.0-1.x86_64.rpm
wget -q https://download.oracle.com/otn_software/linux/instantclient/214000/oracle-instantclient-devel-21.4.0.0.0-1.x86_64.rpm
- name: Install Oracle client
run: |
sudo alien -i oracle-instantclient-basic-21.4.0.0.0-1.x86_64.rpm
sudo alien -i oracle-instantclient-sqlplus-21.4.0.0.0-1.x86_64.rpm
sudo alien -i oracle-instantclient-devel-21.4.0.0.0-1.x86_64.rpm
- name: Install JDBC Driver
run: |
wget -q https://download.oracle.com/otn-pub/otn_software/jdbc/211/ojdbc11.jar -O ./lib/ojdbc11.jar
- name: Create database user
run: |
./ci/setup_accounts.sh
- name: Bundle install
run: |
bundle install --jobs 4 --retry 3
- name: Run RSpec
run: |
bundle exec rspec
- name: Workaround jruby-head failure by removing Gemfile.lock
run: |
rm Gemfile.lock
- name: Run bug report templates
run: |
cd guides/bug_report_templates
ruby active_record_gem.rb
ruby active_record_gem_spec.rb
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,4 @@ Performance/DeleteSuffix:
Enabled: true

Performance/OpenStruct:
Enabled: true
Enabled: true
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ env:
- DATABASE_VERSION=11.2.0.1
- ORACLE_SID=XE
- DATABASE_NAME=XE
- ORA_SDTZ='Europe/Riga' #Needed as a client parameter
- TZ='Europe/Riga' #Needed as a DB Server parameter
- ORA_SDTZ='Europe/Riga' # Needed as a client parameter
- TZ='Europe/Riga' # Needed as a DB Server parameter
- "JRUBY_OPTS='--debug --dev -J-Xmx1024M'"

before_install:
Expand Down Expand Up @@ -56,4 +56,4 @@ rvm:
# - rvm: jruby-head

notifications:
email: false
email: false
9 changes: 9 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: default

rules:
comments:
min-spaces-from-content: 1
document-start: disable
line-length: disable
truthy:
check-keys: false