Skip to content

Commit

Permalink
Delete Gemfile.lock before running tests to support older Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mogest committed Jun 16, 2024
1 parent 1b858cd commit a0b242f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ jobs:
matrix:
ruby: [2.7, '3.0', 3.1, 3.2, 3.3]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Run tests
run: bundle exec rake
env:
RUBYOPT: "--enable-frozen-string-literal"
- uses: actions/checkout@v4
- name: Remove Gemfile.lock
run: rm -f Gemfile.lock
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Run tests
run: bundle exec rake
env:
RUBYOPT: "--enable-frozen-string-literal"

0 comments on commit a0b242f

Please sign in to comment.