-
Notifications
You must be signed in to change notification settings - Fork 29
40 lines (36 loc) · 1.09 KB
/
rspec_tests.yaml
File metadata and controls
40 lines (36 loc) · 1.09 KB
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
---
name: RSpec test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
rspec_tests:
name: ${{ matrix.cfg.os }}(ruby ${{ matrix.cfg.ruby }})
strategy:
matrix:
cfg:
- {os: ubuntu-22.04, ruby: '3.1'}
- {os: ubuntu-22.04, ruby: '3.2'}
- {os: ubuntu-22.04, ruby: '3.3'}
- {os: ubuntu-22.04, ruby: '3.4'}
- {os: ubuntu-22.04, ruby: '4.0'}
- {os: ubuntu-22.04, ruby: 'jruby-9.4.8.0'}
- {os: windows-2022, ruby: '3.1'}
- {os: windows-2022, ruby: '3.2'}
- {os: windows-2022, ruby: '3.3'}
- {os: windows-2022, ruby: '3.4'}
- {os: windows-2022, ruby: '4.0'}
runs-on: ${{ matrix.cfg.os }}
steps:
- name: Checkout current PR
uses: actions/checkout@v6
- name: Install ruby version ${{ matrix.cfg.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.cfg.ruby }}
bundler-cache: true
- run: bundle exec rake spec
- name: Verify gem builds
run: gem build --verbose *.gemspec