Skip to content

Commit e606e1a

Browse files
committed
Fix the workflow
1 parent 98521be commit e606e1a

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

.github/workflows/ruby.yml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,29 @@ jobs:
2828
--health-timeout 5s
2929
--health-retries 5
3030
31-
- name: Create DB
32-
env:
33-
RAILS_ENV: test
34-
run: |
35-
cp test/dummy/config/database.yml.ci test/dummy/config/database.yml
36-
bin/rails db:setup
37-
38-
- name: Compile assets
39-
env:
40-
RAILS_ENV: test
41-
run: cd test/dummy && bin/rails assets:precompile
42-
43-
- name: Run tests
44-
run: bin/rails test test/*
31+
steps:
32+
- uses: actions/checkout@v4
33+
34+
- name: Install libvips
35+
run: sudo apt-get install -y libvips
36+
37+
- name: Set up Ruby
38+
uses: ruby/setup-ruby@v1
39+
with:
40+
ruby-version: ${{matrix.ruby-version}}
41+
bundler-cache: true
42+
43+
- name: Create DB
44+
env:
45+
RAILS_ENV: test
46+
run: |
47+
cp test/dummy/config/database.yml.ci test/dummy/config/database.yml
48+
bin/rails db:setup
49+
50+
- name: Compile assets
51+
env:
52+
RAILS_ENV: test
53+
run: cd test/dummy && bin/rails assets:precompile
54+
55+
- name: Run tests
56+
run: bin/rails test test/*

0 commit comments

Comments
 (0)