Skip to content

Commit fd90851

Browse files
committed
test: Update ruby versions in specs workflows
1 parent bd32c5f commit fd90851

4 files changed

Lines changed: 215 additions & 156 deletions

File tree

.github/workflows/specs_rails61.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
ruby: ['3.0', '3.1', '3.2']
18+
ruby: ['3.2']
1919
gemfile: ['rails61_activeadmin29', 'rails61_activeadmin']
2020

2121
env:

.github/workflows/specs_rails70.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
ruby: ['3.0', '3.1', '3.2']
18+
ruby: ['3.0', '3.3']
1919
gemfile: ['rails70_activeadmin']
2020

2121
env:
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Specs Rails 7.1
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
tests:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
ruby: ['3.2', '3.4']
19+
gemfile: ['rails71_activeadmin']
20+
21+
env:
22+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Ruby
29+
uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: ${{ matrix.ruby }}
32+
bundler-cache: true
33+
34+
- name: Run tests
35+
run: bundle exec rspec --profile
36+
37+
- name: On failure, archive screenshots as artifacts
38+
uses: actions/upload-artifact@v4
39+
if: failure()
40+
with:
41+
name: test-failed-screenshots
42+
path: spec/dummy/tmp/screenshots

0 commit comments

Comments
 (0)