Skip to content

Commit

Permalink
Set up GitHub actions for testing
Browse files Browse the repository at this point in the history
This is GitHub’s default template, plus an extra step to respect `.ruby-version`, which is taken from actions/setup-ruby#31 (comment).
  • Loading branch information
lawrence-forooghian committed Mar 26, 2020
1 parent f35402a commit f6ddaae
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Ruby

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo "::set-output name=RUBY_VERSION::$(cat .ruby-version)"
id: rbenv
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: "${{ steps.rbenv.outputs.RUBY_VERSION }}"
- name: Build and test with Rake
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake

0 comments on commit f6ddaae

Please sign in to comment.