Skip to content

Commit

Permalink
Use better caching strategy (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunchr authored Nov 6, 2024
1 parent 268e3cf commit aedd97e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,30 @@ on: push
jobs:
test:
runs-on: ubuntu-latest
env:
BUNDLE_PATH: vendor/bundle
strategy:
matrix:
ruby: [3.0, 3.3]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Restore cache
uses: actions/cache@v4
with:
key: gems
path: |
gemfiles
vendor/bundle
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}

- name: Install dependencies
run: bundle && cd spec/dummy && bundle && cd ../.. && bundle exec appraisal install
run: bundle && bundle exec appraisal install

- name: Run tests
run: bundle exec appraisal bin/check
Expand Down

0 comments on commit aedd97e

Please sign in to comment.