-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (48 loc) · 1.04 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
branches:
- master
jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 3
strategy:
fail-fast: false
matrix:
include:
- ruby: 2.7.2
gemfile: Gemfile
- ruby: 3.2.0
gemfile: Gemfile
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v3
- name: Install Chrome
uses: browser-actions/setup-chrome@latest
- name: Show Chrome version
run: chrome --version
- name: Install ChromeDriver
uses: nanasess/setup-chromedriver@master
- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
- name: Bundle
run: |
gem install bundler:2.2.15
bundle install --no-deployment
- name: Run tests
uses: nick-invision/retry@v2
with:
timeout_seconds: 30
max_attempts: 3
command: bundle exec rake spec