Skip to content

Commit f92390c

Browse files
author
Mattia Roccoberton
committed
Add Github Actions specs
1 parent 5ca5213 commit f92390c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/specs.yml

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

0 commit comments

Comments
 (0)