-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 732 Bytes
/
ruby.yml
File metadata and controls
32 lines (27 loc) · 732 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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
ruby-version: ['2.7', '3.0', '3.1']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: build extensions
run: bundle exec rake compile
- if: ${{ matrix.ruby-version == '3.1' }}
name: rubocop
run: bundle exec rubocop
- name: tests
run: bundle exec rake test