Skip to content

Commit

Permalink
Use caching during CI
Browse files Browse the repository at this point in the history
  • Loading branch information
a666 committed Feb 6, 2024
1 parent 3fc59d2 commit 3dbcb4a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby
name: Tests

on:
push:
Expand All @@ -21,19 +21,17 @@ jobs:
matrix:
rspec-minor-versions: [6, 7, 8, 9, 10, 11, 12, 13]
ruby-versions: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"]
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rspec_3.${{ matrix.rspec-minor-versions }}.gemfile

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

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

- name: install bundle
env:
BUNDLE_GEMFILE: gemfiles/rspec_3.${{ matrix.rspec-minor-versions }}.gemfile
run: bundle install
bundler-cache: true

- name: Run tests
run: bundle exec rake

0 comments on commit 3dbcb4a

Please sign in to comment.