Skip to content

Commit 186ff95

Browse files
author
Mattia Roccoberton
committed
Add Rails 7.0 GitHub Action workflow
1 parent 3006344 commit 186ff95

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/specs3.yml

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

0 commit comments

Comments
 (0)