-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 894 Bytes
/
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
name: Test
on: [push]
jobs:
test:
strategy:
matrix:
ruby:
- "2.6"
- "2.7"
- "3.1"
- "3.2"
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: bundle install
run: |
gem install bundler
bundle config path vendor/bundle
bundle install -j $(getconf _NPROCESSORS_ONLN) --retry 3
- name: Run Test
run: bundle exec rspec