Skip to content

Commit 2aa58cc

Browse files
committed
Test on Ruby 2.7 and 3.2
Use current latest stable release of Ruby for tests. Ruby 2.7 reached end of life on 2023-03-31. We still test on the older version for completeness, as Middleman v4 plans to keep support for Ruby 2.7 indefinitely [[1]]. [1]: middleman/middleman#2614 (comment)
1 parent 113f781 commit 2aa58cc

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ jobs:
77
name: Test
88
runs-on: ubuntu-latest
99

10+
strategy:
11+
matrix:
12+
ruby: ['2.7', '3.2']
13+
1014
steps:
1115
- uses: actions/checkout@v2
1216

@@ -17,6 +21,7 @@ jobs:
1721

1822
- uses: ruby/setup-ruby@v1
1923
with:
24+
ruby-version: ${{ matrix.ruby }}
2025
bundler-cache: true
2126

2227
- name: Run tests

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ inherit_gem:
22
rubocop-govuk:
33
- config/default.yml
44

5+
AllCops:
6+
TargetRubyVersion: 2.7
7+
58
Layout/HeredocIndentation:
69
Enabled: false
710

.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)