Skip to content

Commit

Permalink
add step to ci to run tests with sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Mar 12, 2024
1 parent 30b2bd9 commit d380414
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/lint-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ jobs:
run: |
bundle exec rspec --format documentation
- name: Run core tests with sqlite
run: |
sed -i 's/adapter: mysql2/adapter: sqlite3/' config/rmt.yml
bundle exec rspec --format documentation
- name: Run PubCloud engines tests
run: |
bundle exec rake test:engines
Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
# Skipping some tests when running with (experimental) sqlite backend.
# Some tests / code parts are using specific mysql behavior
if ActiveRecord::Base.connection.adapter_name == 'SQLite'
config.filter_run_excluding :skip_sqlite => true
config.filter_run_excluding skip_sqlite: true
end
end

Expand Down

0 comments on commit d380414

Please sign in to comment.