-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (35 loc) · 954 Bytes
/
build.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: Build + Test
on: [pull_request]
jobs:
build:
name: Build + Test
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.4.0', '2.5.0', '2.6.0', '2.7.2', '3.0.0', '3.3.0']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Build and test with Rake with Ruby ${{ matrix.ruby }}
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake spec
lint:
name: Rubocop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Run linters
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake rubocop