Skip to content

Commit 1baf6f8

Browse files
author
Mattia Roccoberton
committed
Update GitHub specs workflows
1 parent a8f8060 commit 1baf6f8

2 files changed

Lines changed: 45 additions & 3 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Specs
2+
name: Specs Rails 6.0
33

44
on:
55
push:
@@ -15,8 +15,8 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
ruby: ['2.6', '2.7', '3.0']
19-
gemfile: ['rails60_activeadmin22', 'rails60_activeadmin', 'rails61_activeadmin29', 'rails61_activeadmin']
18+
ruby: ['2.6', '2.7']
19+
gemfile: ['rails60_activeadmin22', 'rails60_activeadmin']
2020

2121
env:
2222
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Specs Rails 6.1
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
tests:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
ruby: ['2.6', '2.7', '3.0']
19+
gemfile: ['rails61_activeadmin29', 'rails61_activeadmin']
20+
21+
env:
22+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v2
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@v2
39+
if: failure()
40+
with:
41+
name: test-failed-screenshots
42+
path: spec/dummy/tmp/screenshots

0 commit comments

Comments
 (0)