Skip to content

Commit

Permalink
GH-48 - Switch CI to Gihtub Actions (#50)
Browse files Browse the repository at this point in the history
* GH-48 - Switch CI to Gihtub Actions

Set up a Github Actions workflow to build and run tests for the project
for the following reasons:

* travis-ci.org has migrated to travis-ci.com
* Docker is limiting image pulls via current Travis builds
* Github Actions is built into Github projects like runbook

Closes #48

* GH-48 - Update Ruby versions for Github Actions

Update the versions of Ruby to use for running the Github Actions
workflow. For versions > 2.4, include only the minor version to
automatically run for any patched versions as well.

* Skip Ruby 3.1 for now after test failures
  • Loading branch information
coopergillan authored Jan 28, 2022
1 parent 4ea89a7 commit 6f4d226
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Ruby CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
exclude:
- ruby-version: 2.3.8
gemfile: gemfiles/activesupport_6.gemfile
- ruby-version: 2.4.10
gemfile: gemfiles/activesupport_6.gemfile
gemfile:
- gemfiles/activesupport_5.gemfile
- gemfiles/activesupport_6.gemfile
ruby-version:
- 2.3.8
- 2.4.10
- 2.5
- 2.6
- 2.7
- '3.0' # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake spec_all

0 comments on commit 6f4d226

Please sign in to comment.