Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: rely on ruby/setup-ruby to bundle install #141

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 10 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ on: [push, pull_request]

jobs:
test:
env:
RAILS_VERSION: ${{ matrix.rails }}
BUNDLE_PATH: "vendor/bundle-${{ matrix.rails }}"
runs-on: ubuntu-latest
name: Test against Rails ${{ matrix.rails }} with Ruby ${{ matrix.ruby }}
name: Test against Rails ${{ matrix.rails }} on Ruby ${{ matrix.ruby }}
strategy:
matrix:
rails: [
Expand All @@ -30,26 +33,20 @@ jobs:
ruby: '3.2'

steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: false

- uses: actions/checkout@v4
- name: Install Dependencies
env:
RAILS_VERSION: ${{ matrix.rails }}
BUNDLE_PATH: "vendor/bundle-${{ matrix.rails }}"
run: |
sudo apt-get update
sudo apt-get -yqq install libsqlite3-dev chromium-browser
bundle install --jobs 4 --retry 3

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Test
run: bundle exec rake
env:
RAILS_VERSION: ${{ matrix.rails }}
BUNDLE_PATH: "vendor/bundle-${{ matrix.rails }}"
DEFAULT_TEST_EXCLUDE: ""
RAILS_ENV: "test"