-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (41 loc) · 1.17 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
name: Tests
on:
pull_request:
push:
branches:
- '**'
tags-ignore:
- 'v*'
jobs:
test:
name: 'Ruby ${{ matrix.ruby }} × Sidekiq v${{ matrix.sidekiq }} × ActiveJob v${{ matrix.activejob }}'
# Skip running tests for local pull requests (use push event instead), run only for foreign ones
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ruby: '3.3'
sidekiq: '7'
activejob: '7.1'
- ruby: '3.2'
sidekiq: '7'
activejob: '7.0'
- ruby: '3.1'
sidekiq: '6'
activejob: '6.1'
- ruby: '3.0'
sidekiq: '5'
activejob: '6.0'
env:
SIDEKIQ_VERSION: '${{ matrix.sidekiq }}'
ACTIVEJOB_VERSION: '${{ matrix.activejob }}'
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run RSpec
run: bundle exec rspec