Skip to content

Commit

Permalink
Merge pull request #27 from envato/add-github-action-for-test
Browse files Browse the repository at this point in the history
Configure Github Action to run tests
  • Loading branch information
Domon authored May 8, 2020
2 parents 3aeb5ce + 57e09a0 commit 6ad79c8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Ruby

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

jobs:
test:
runs-on: ${{ matrix.operating_system }}
strategy:
matrix:
operating_system: [ ubuntu-latest, macos-latest ]
ruby_version: [ 2.6, 2.7 ]
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
1 change: 0 additions & 1 deletion knuckle_cluster.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
end
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler", "~> 1.14"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "pry", "~> 0.11"
Expand Down

0 comments on commit 6ad79c8

Please sign in to comment.