-
Notifications
You must be signed in to change notification settings - Fork 174
54 lines (42 loc) · 1.22 KB
/
test-package.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: test
on: [push, pull_request]
jobs:
specs:
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2']
optional-groups: ['test sidekiq']
include:
- ruby-version: '1.9'
optional-groups: 'test'
- ruby-version: '2.0'
optional-groups: 'test'
- ruby-version: '2.1'
optional-groups: 'test'
- ruby-version: '2.2'
optional-groups: 'test sidekiq'
os: 'ubuntu-20.04'
- ruby-version: 'jruby'
optional-groups: 'test'
steps:
- uses: actions/checkout@v3
- name: install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- run: bundle install --with "${{ matrix.optional-groups }}" --binstubs
- run: ./bin/rake spec
linting:
runs-on: ubuntu-latest
env:
BUNDLE_WITH: rubocop
steps:
- uses: actions/checkout@v3
- name: install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: bundle exec rubocop lib/