Skip to content

Commit

Permalink
First version of GitHub Actions based CI
Browse files Browse the repository at this point in the history
  • Loading branch information
meineerde committed Jul 16, 2020
1 parent 12bf9b7 commit c072128
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
rspec:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
ruby:
- 2.7
- 2.6
- 2.5
- 2.4
- 2.3
- 2.2
- 2.1
- head

- jruby-9.1
- jruby-9.2
- jruby-head

- truffleruby
- truffleruby-head
include:
- ruby: 2.1
bundler-version: 1
- ruby: 2.2
bundler-version: 1

continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'truffleruby' }}

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-version: ${{ matrix.bundler-version || '2' }}
bundler-cache: true

- name: rspec
run: bundle exec rspec

0 comments on commit c072128

Please sign in to comment.