Skip to content

Commit 0bb0e2f

Browse files
authored
Merge pull request #63 from ruby/ci-with-bundle-cache
CI: Use a single build matrix, in 1 Workflow
2 parents 3223c40 + 0ded575 commit 0bb0e2f

File tree

4 files changed

+29
-56
lines changed

4 files changed

+29
-56
lines changed

.github/workflows/macos.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
ruby: [ 'head', '3.0', '2.7', '2.6', '2.5' ]
11+
os: [ 'ubuntu-latest', 'windows-latest' ]
12+
include:
13+
- { os: macos-latest, ruby: '2.6' }
14+
- { os: ubuntu-latest, ruby: 'jruby-head' }
15+
- { os: ubuntu-latest, ruby: 'jruby-9.2' }
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Ruby ${{ matrix.ruby }}
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ matrix.ruby }}
22+
bundler-cache: true # 'bundle install' and cache
23+
- name: Ensure new-enough RubyGems
24+
run: gem update --system
25+
if: ${{ matrix.ruby == '2.6' || matrix.ruby == '2.5' }}
26+
- name: Run test
27+
run: bundle exec rake
28+
env:
29+
JRUBY_OPTS: -X+O

.github/workflows/ubuntu.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/windows.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)