Skip to content

Commit c3c5a44

Browse files
committed
Update the github workflow to use v1 setup ruby
1 parent 5d921a2 commit c3c5a44

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/ruby.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
66
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
77

8-
name: Ruby
8+
name: Ruby Test n' Lint
99

1010
on:
1111
push:
@@ -24,20 +24,13 @@ jobs:
2424
POSTGRES_DB: doubleup_test
2525
ports: ["5432:5432"]
2626

27-
strategy:
28-
matrix:
29-
ruby-version: ["3.0"]
30-
3127
steps:
32-
- uses: actions/checkout@v2
33-
- name: Set up Ruby
34-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
35-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
36-
# uses: ruby/setup-ruby@v1
37-
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
28+
- uses: actions/checkout@v4
29+
- uses: ruby/setup-ruby@v1
3830
with:
39-
ruby-version: ${{ matrix.ruby-version }}
4031
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
32+
- run: bundle install
33+
- run: bundle exec rake
4134
- name: Setup Database
4235
env:
4336
RAILS_ENV: test

0 commit comments

Comments
 (0)