Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
faf80bf
fix: github actions to publish to RubyGems
ctran Feb 10, 2022
9c3dc0f
Update CHANGELOG.md
ctran Feb 11, 2022
0e378d4
Get CI to a working state (#959)
drwl Jun 24, 2022
dfe27ae
Make specs run in random order (#787)
drwl Jun 24, 2022
0ec5c8b
Fix flaky specs (#980)
lovro-bikic Mar 29, 2023
a5aeede
Add support for annotating check constraints (#868)
lovro-bikic Mar 29, 2023
977e1cb
Update codeql-analysis.yml
ctran Mar 29, 2023
c7de2fb
Fix retrieve_indexes_from_table when indexes is empty and base table …
jjowdy Mar 29, 2023
69b5bc1
Support `--frozen` option for routing annotations (#979)
kg8m Mar 30, 2023
0c60c36
chore: remove broken badges from README.md
ctran Mar 30, 2023
b267e74
fix: can't modify frozen String: "decimal" (#895)
n-rodriguez Apr 23, 2023
cd99b74
Place column comments at the end of the line (#988)
Adeynack Jun 24, 2023
bf51ba3
Make `with_comment_column` work with `Annotate.set_defaults` (#999)
Adeynack Nov 30, 2023
e9db351
Bump rails version up to 8.0
LucasArruda Jan 6, 2026
5386fd0
Bump activerecord version up to 8.0
LucasArruda Jan 6, 2026
13e4cf6
Remove ruby_dep as is it not supported anymore
LucasArruda Jan 6, 2026
e3da8e7
Remove old unsupported gem `files`
LucasArruda Jan 6, 2026
c8873af
Bump old rubocop
LucasArruda Jan 6, 2026
4f708dc
Remove more unused gems
LucasArruda Jan 6, 2026
89cf511
Remove capybara check
LucasArruda Jan 6, 2026
413d0c1
Disable Capybara/Rspec
LucasArruda Jan 6, 2026
3950667
Update rubocop to a working version
LucasArruda Jan 6, 2026
32d7eee
Generate an updated rubocop todo
LucasArruda Jan 6, 2026
65c7de5
Make overcommit use the correct rubocop
LucasArruda Jan 6, 2026
56ea1ad
Update .rubocop_todo.yml
LucasArruda Jan 6, 2026
38b5580
Use `fileutils` instead of `Files` on specs
LucasArruda Jan 6, 2026
1a67955
Remove rubocop:disable Metrics/ClassLength
LucasArruda Jan 6, 2026
9ce4ee3
Update version.rb
LucasArruda Jan 6, 2026
b1925d6
Update spectations
thatsanicehat Jun 12, 2026
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
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,20 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.4', '2.5', '2.6']
ruby: ['2.7']

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Install sqlite
run: |
sudo apt-get install libsqlite3-dev

- name: Run Tests
run: INTEGRATION_TESTS=1 bundle exec rspec
run: bundle exec rspec

- name: Rubocop
run: bundle exec rubocop
71 changes: 39 additions & 32 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,61 @@
name: "Code scanning - action"
name: "CodeQL"

on:
push:
branches-ignore:
- pr/*
- scratch/*
branches: [ "develop" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "develop" ]
schedule:
- cron: '0 20 * * 7'
- cron: '26 5 * * 4'

jobs:
CodeQL-Build:

analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'ruby' ]

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

#- run: |
# make bootstrap
# make release
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
tags:
- 'v*'
branches:
- 'release/*'

jobs:
release:
Expand All @@ -13,24 +15,23 @@ jobs:
uses: actions/checkout@v1

- name: Setup Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.x
ruby-version: '2.6'

- name: Bundle
run: |
gem update --system
gem update bundler
bundle install --jobs 4 --retry 3

- name: Publish to GPR
- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
gem push *.gem
env:
GEM_HOST_API_KEY: ${{ secrets.GPR_AUTH_TOKEN }}
OWNER: ctran
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
7 changes: 4 additions & 3 deletions .overcommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
# Uncomment the following lines to make the configuration take effect.

PreCommit:
RuboCop:
enabled: true
on_warn: fail # Treat all warnings as failures
RuboCop:
enabled: true
on_warn: fail
command: ['bundle', 'exec', 'rubocop']

PrePush:
RSpec:
Expand Down
11 changes: 11 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
inherit_from:
- .rubocop_todo.yml

require:
- rubocop-rake
- rubocop-rspec

AllCops:
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'tmp/**/*'
- 'spec/integration/**/*'
NewCops: enable

Capybara:
Enabled: false

Capybara/RSpec:
Enabled: false

Metrics/BlockLength:
Exclude:
Expand Down
Loading