Skip to content

Commit

Permalink
Merge pull request #2 from hidakatsuya/drop-ruby2.7-support
Browse files Browse the repository at this point in the history
Drop ruby2.7 support
  • Loading branch information
hidakatsuya authored Dec 30, 2023
2 parents b9b13b2 + 8eb3ee5 commit d5903d7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
name: Test

on: [push, pull_request]
on:
push:
branches:
- main
- 'dev**'
pull_request:

jobs:
test:
name: Test on ruby ${{ matrix.ruby_version }}
runs-on: ubuntu-latest

if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest

strategy:
matrix:
ruby_version:
- '2.7'
- '3.0'
- '3.1'
- '3.2'

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

- uses: hidakatsuya/action-setup-diff-pdf@v1
with:
Expand All @@ -28,9 +31,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}

- name: Install dependencies
run: bundle install --jobs 4 --retry 3
bundler-cache: true

- name: Run Tests
run: xvfb-run -a bundle exec rake test
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## main (Unreleased)

- Drop Ruby2.7 support

## 2.1.0

### Changes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Note that you can install it with [hidakatsuya/setup-diff-pdf](https://github.co

### Supported Ruby Versions

2.7, 3.0, 3.1, 3.2
3.0, 3.1, 3.2

## Installation

Expand Down
2 changes: 1 addition & 1 deletion pdf_matcher.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
spec.description = 'PdfMatcher is a gem to compare two PDFs and output the differences using diff-pdf'
spec.homepage = 'https://github.com/hidakatsuya/pdf_matcher'
spec.license = 'MIT'
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
spec.required_ruby_version = Gem::Requirement.new('>= 3.0.0')

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
Expand Down

0 comments on commit d5903d7

Please sign in to comment.