Skip to content

Commit

Permalink
Merge pull request #21 from wjohnstondrip/github-actions
Browse files Browse the repository at this point in the history
Set up GitHub Actions
  • Loading branch information
adorechic committed Apr 4, 2024
2 parents fc3f447 + 48be5eb commit cd9ba46
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Ruby CI

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

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
# Currently supported Ruby versions as of 2024-04-03.
# See for current status: https://www.ruby-lang.org/en/downloads/branches/
ruby-version: ['3.3', '3.2', '3.1']

steps:
- uses: actions/checkout@v4
- 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: AWS_REGION=us-east-1 bundle exec rake
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in rcredstash.gemspec
gemspec

# Needed to run tests.
# Could be any of ox, oga, libxml, nokogiri or rexml
gem 'rexml'
4 changes: 2 additions & 2 deletions rcredstash.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'aws-sdk-dynamodb'
spec.add_dependency 'thor'

spec.add_development_dependency "bundler", "~> 2.4"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.0"
end

0 comments on commit cd9ba46

Please sign in to comment.