Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: SQLite support #51

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
56 changes: 56 additions & 0 deletions .github/workflows/specs_sqlite_72.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: Specs Rails 7.2 SQLite

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
ruby: ['3.3']
gemfile: ['rails_7_2_sqlite']

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
DB_TEST: sqlite
RAILS: '7.0'

steps:
- name: Install lib VIPS
run: sudo apt-get install -y libvips-dev

- name: Checkout repository
uses: actions/checkout@v4

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

- name: Database setup
run: bundle exec rails db:create db:migrate

- name: Run tests
run: bundle exec rspec --profile

- name: Code Climate test coverage
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/coverage/lcov/active_storage_db.lcov:lcov

# - name: Upload coverage results
# uses: actions/upload-artifact@main
# if: always()
# with:
# name: coverage-report
# path: coverage/index.html
15 changes: 15 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,18 @@ appraise 'rails-7_0-mssql' do
gem 'rails', '~> 7.0.0'
gem 'tiny_tds'
end

appraise 'rails-6_1-sqlite' do
gem 'sqlite3', '~> 1.4'
gem 'rails', '~> 6.1.0'
end

appraise 'rails-7_1-sqlite' do
gem 'sqlite3', '~> 1.4'
gem 'rails', '~> 7.1.0'
end

appraise 'rails-7_2-sqlite' do
gem 'sqlite3', '~> 1.4'
gem 'rails', '~> 7.2.0'
end
24 changes: 24 additions & 0 deletions gemfiles/rails_6_1_sqlite.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "image_processing", ">= 1.2"
gem "webrick"
gem "simplecov"
gem "simplecov-lcov"
gem "capybara"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "brakeman"
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rspec"
gem "pry-rails"
gem "sqlite3", "~> 1.4"
gem "rails", "~> 6.1.0"

gemspec path: "../"
Loading
Loading