Skip to content

Commit 23edfb1

Browse files
authored
Set up DB for tests as part of default Rake task (#374)
Set up DB for tests Co-authored-by: Andy Waite <[email protected]>
1 parent 39ae19c commit 23edfb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
cache-version: 7
4444

4545
- name: Run tests
46-
run: bundle exec rails db:setup && bundle exec rails db:migrate && bundle exec rails test
46+
run: bundle exec rake
4747
lint:
4848
runs-on: ubuntu-latest
4949
steps:

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ end
3030

3131
RubyLsp::CheckDocs.new(FileList["#{__dir__}/lib/ruby_lsp/**/*.rb"], FileList["#{__dir__}/misc/**/*.gif"])
3232

33-
task default: :test
33+
task default: [:"db:setup", :test]

0 commit comments

Comments
 (0)