-
Notifications
You must be signed in to change notification settings - Fork 25
38 lines (36 loc) · 949 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
37
38
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- 3.0.0
- 3.1.0
- 3.2.0
- 3.3.0
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: 'Update gem command'
run: yes | gem update --system --force
- name: 'Update Bundler'
run: gem install bundler
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- run: bundle install
- name: 'Ensure appraisals are up to date'
run: appraisal clean && appraisal generate && git diff --exit-code
- run: appraisal install
- run: appraisal rake