summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-11 13:45:58 -0600
committermo khan <mo.khan@gmail.com>2020-04-11 13:45:58 -0600
commit1de50e8940713c9302688a77bb67468d54418648 (patch)
treecd6ba609308f12c47657ee09da4021646262f317 /.github/workflows/ci.yml
parentb897c4412c5185a06c41db38f05b831d685836bf (diff)
Add build matrix
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ea25f34..026a018 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,16 +1,18 @@
name: ci
-on: [push]
+on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ruby: [ '2.4', '2.5', '2.6', '2.7' ]
+ name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
with:
lfs: true
submodules: recursive
- - name: Set up Ruby 2.6
- uses: actions/setup-ruby@v1
+ - uses: actions/setup-ruby@v1
with:
- ruby-version: 2.6.x
- - name: Run cibuild
- run: bin/cibuild
+ ruby-version: ${{ matrix.ruby }}
+ - run: ./bin/cibuild