Skip to content

Commit

Permalink
Merge pull request #63 from ruby/ci-with-bundle-cache
Browse files Browse the repository at this point in the history
CI: Use a single build matrix, in 1 Workflow
  • Loading branch information
hsbt authored Oct 11, 2021
2 parents 3223c40 + 0ded575 commit 0bb0e2f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 56 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/macos.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
ruby: [ 'head', '3.0', '2.7', '2.6', '2.5' ]
os: [ 'ubuntu-latest', 'windows-latest' ]
include:
- { os: macos-latest, ruby: '2.6' }
- { os: ubuntu-latest, ruby: 'jruby-head' }
- { os: ubuntu-latest, ruby: 'jruby-9.2' }
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # 'bundle install' and cache
- name: Ensure new-enough RubyGems
run: gem update --system
if: ${{ matrix.ruby == '2.6' || matrix.ruby == '2.5' }}
- name: Run test
run: bundle exec rake
env:
JRUBY_OPTS: -X+O
22 changes: 0 additions & 22 deletions .github/workflows/ubuntu.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/windows.yml

This file was deleted.

0 comments on commit 0bb0e2f

Please sign in to comment.