Skip to content

Commit a6d61a1

Browse files
committed
remind about untested rails versions
1 parent bc5e925 commit a6d61a1

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/check.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@ on:
55
schedule:
66
- cron: 45 4 * * 4
77
jobs:
8+
reminder:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v6
12+
- uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: '4'
15+
bundler-cache: true
16+
- run: |
17+
curl -fsSL 'https://rubygems.org/api/v1/versions/rails.json' | ruby -rjson -e '
18+
next_version = Dir.glob("spec/dummy-*")
19+
.map{ Gem::Version.new(_1.split("-")[1] + ".0") }
20+
.max
21+
.bump
22+
23+
untested = JSON.load(STDIN)
24+
.map{ Gem::Version.new(_1["number"]) }
25+
.reject(&:prerelease?)
26+
.reject{ _1 < next_version }
27+
.sort
28+
.map(&:approximate_recommendation)
29+
.uniq
30+
31+
abort "Test versions #{untested.join(", ")}" unless untested.empty?
32+
'
833
check:
934
runs-on: ubuntu-latest
1035
container: "${{ matrix.container }}"

0 commit comments

Comments
 (0)