ci: delete any corrupted .gem cache that could be causing the Marshal… #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# Legacy but still supported (Bundler 1.17) | |
- ruby: "2.1.9" | |
bundler: "1.17.3" | |
- ruby: "2.2.10" | |
bundler: "1.17.3" | |
# Regular supported versions | |
- ruby: "2.3.8" | |
- ruby: "2.4.10" | |
- ruby: "2.5.9" | |
- ruby: "2.6.7" | |
- ruby: "2.7.8" | |
- ruby: "3.0.6" | |
- ruby: "3.1.4" | |
- ruby: "3.2.3" | |
- ruby: "3.3.0" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Update RubyGems (for Ruby <= 2.2) | |
if: matrix.ruby == '2.2.10' || matrix.ruby == '2.1.9' | |
run: gem update --system 2.6.14 | |
- name: Clear old gem cache (for Ruby <= 2.2) | |
if: matrix.ruby == '2.2.10' || matrix.ruby == '2.1.9' | |
run: | | |
gem sources --clear-all | |
rm -rf ~/.gem | |
- name: Install Bundler 1.17.3 (for Ruby <= 2.2) | |
if: matrix.ruby == '2.2.10' || matrix.ruby == '2.1.9' | |
run: gem install bundler -v 1.17.3 --force | |
- name: Install dependencies | |
run: bundle install --jobs 3 --retry 3 | |
- name: Run specs | |
run: bundle exec rspec |