-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 804 Bytes
/
main.yml
File metadata and controls
33 lines (31 loc) · 804 Bytes
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
name: Ruby CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
ruby: [ 2.5, 2.6, 2.7, ruby-head ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ matrix.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ matrix.os }}-gems-
- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run Tests
run: bundle exec rake default