Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
516ed58
Fix: RuntimeError - Don't know how to build task 'db:migrate' (#844)
onk Jan 3, 2021
206d970
Update codeql-analysis.yml
ctran Jan 3, 2021
7d211dd
Create release-drafter.yml (#846)
ctran Jan 3, 2021
7b4bcde
Enable bundler caching for travis (#853)
Taher-Ghaleb Mar 24, 2021
83ff912
Fix typo invlaid -> invalid (#835)
olleolleolle Mar 24, 2021
70aba78
Use ruby/setup-ruby since actions/ruby is deprecated (#855)
ctran Mar 24, 2021
18e9e28
Bump puma from 4.3.3 to 4.3.5 in /spec/integration/rails_6.0.2.1 (#808)
dependabot[bot] Apr 26, 2021
4c41913
Bump puma from 4.3.3 to 4.3.5 in /spec/integration/rails_5.2.4.1 (#809)
dependabot[bot] Apr 26, 2021
4ddc7f1
Bump websocket-extensions in /spec/integration/rails_5.2.4.1 (#812)
dependabot[bot] Apr 26, 2021
de1e962
Bump websocket-extensions in /spec/integration/rails_6.0.2.1 (#813)
dependabot[bot] Apr 26, 2021
f665895
Bump rack from 2.1.2 to 2.2.3 in /spec/integration/rails_6.0.2.1 (#819)
dependabot[bot] Apr 26, 2021
a867eb0
Bump rack from 2.1.2 to 2.2.3 in /spec/integration/rails_5.2.4.1 (#820)
dependabot[bot] Apr 26, 2021
e075a21
Allow `get_loaded_model` to succeed when `$LOAD_PATH` contains non-st…
Hamms May 10, 2021
80fbfa5
fix ci: conflicts with removed gems (#865)
ocarta-l Jun 12, 2021
3aa43ea
Remove support for Ruby < 2.4 (#884)
ctran Jun 14, 2021
e4f761c
`get_loaded_model_by_path` is supposed to be nil-safe (#883)
sato11 Jun 14, 2021
ea3c309
Bump puma from 4.3.7 to 5.3.2 in /spec/integration/rails_5.2.4.1 (#887)
dependabot[bot] Jun 14, 2021
7863949
Bump nokogiri from 1.11.2 to 1.11.7 in /spec/integration/rails_6.0.2.…
dependabot[bot] Jun 14, 2021
69ab184
Fix: use klass.table_name instead of guessing from associated models …
ocarta-l Jan 31, 2022
ecf70d8
Fix undefined method error when geometric columns have no `srid` (#920)
oieioi Feb 1, 2022
eaacc0b
Loosen activerecord restriction to work with rails 7 (#912)
dabit Feb 3, 2022
bbb79eb
Bump puma from 5.3.2 to 5.6.1 in /spec/integration/rails_5.2.4.1 (#925)
dependabot[bot] Feb 3, 2022
77b8cac
Bump addressable from 2.7.0 to 2.8.0 in /spec/integration/rails_6.0.2…
dependabot[bot] Feb 8, 2022
94f499d
Bump to v3.2.0
ctran Feb 10, 2022
923c70f
Merge branch 'release/v3.2.0' into develop
ctran Feb 10, 2022
c709341
fix: github actions to publish to RubyGems
ctran Feb 10, 2022
68f5689
Update CHANGELOG.md
ctran Feb 11, 2022
08e50cf
Get CI to a working state (#959)
drwl Jun 24, 2022
ae0b79c
Make specs run in random order (#787)
drwl Jun 24, 2022
76a1804
Fix flaky specs (#980)
lovro-bikic Mar 29, 2023
ea4cd00
Add support for annotating check constraints (#868)
lovro-bikic Mar 29, 2023
13b532d
Update codeql-analysis.yml
ctran Mar 29, 2023
a28fef3
Fix retrieve_indexes_from_table when indexes is empty and base table …
jjowdy Mar 29, 2023
10a7a76
Support `--frozen` option for routing annotations (#979)
kg8m Mar 30, 2023
22ab676
chore: remove broken badges from README.md
ctran Mar 30, 2023
3a78787
fix: can't modify frozen String: "decimal" (#895)
n-rodriguez Apr 23, 2023
e60a666
Place column comments at the end of the line (#988)
Adeynack Jun 24, 2023
5d01c41
Make `with_comment_column` work with `Annotate.set_defaults` (#999)
Adeynack Nov 30, 2023
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
21 changes: 5 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,20 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.4.x', '2.5.x', '2.6.x']
ruby: ['2.7']

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

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

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

- name: Update System
run: |
gem update --system --no-document

- name: Bundle install for Annotate models
run: |
bundle install --jobs=4 --retry=3
bundler-cache: true

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

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

on:
push:
branches: [ "develop" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "develop" ]
schedule:
- cron: '0 6 * * 4'
- 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}}"
17 changes: 17 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release Drafter

on:
push:
branches:
- develop

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "develop"
- uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 }}
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
inherit_from:
- .rubocop_todo.yml

require:
- rubocop-rake
- rubocop-rspec

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

Metrics/BlockLength:
Exclude:
Expand Down
Loading