-
Notifications
You must be signed in to change notification settings - Fork 97
62 lines (56 loc) · 1.58 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Tests
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.6
- run: bundle exec rubocop
test:
strategy:
fail-fast: false
matrix:
include:
- ruby: 2.6
- ruby: 2.6
gemfile: gems/typhoeus.gemfile
test_features: "typhoeus"
- ruby: 2.6
gemfile: gems/octoshark.gemfile
- ruby: 2.7
- ruby: 2.7
prepend: true
- ruby: "3.0"
- ruby: "3.0"
prepend: true
- ruby: "3.0"
gemfile: gems/instruments.gemfile
test_features: "instruments"
- ruby: "3.0"
gemfile: gems/instruments.gemfile
prepend: true
test_features: "instruments"
- ruby: "3.0"
gemfile: gems/sidekiq.gemfile
test_features: "sidekiq_install"
- ruby: 3.1
- ruby: 3.2
- ruby: 3.3
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
SCOUT_TEST_FEATURES: ${{ matrix.test_features }}
SCOUT_USE_PREPEND: ${{ matrix.prepend }}
# https://github.com/ruby/setup-ruby/issues/496
runs-on: ${{ matrix.ruby == '2.2' && 'ubuntu-20.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
bundler: ${{matrix.bundler}}
ruby-version: ${{ matrix.ruby }}
- run: bundle exec rake