Skip to content

Commit

Permalink
Merge pull request #31 from springboardretail/dstotz/travis-ci-to-git…
Browse files Browse the repository at this point in the history
…hub-actions

Switch CI from TravisCI to GitHub Actions
  • Loading branch information
dstotz committed Oct 10, 2023
2 parents d332da7 + b78bae7 commit 7031db9
Show file tree
Hide file tree
Showing 20 changed files with 66 additions and 43 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: build
on:
push:
branches:
- master
tags:
- '!*'
pull_request:

jobs:
test:
name: Test 3.2.2
runs-on: ubuntu-latest
env:
CC_TEST_REPORTER_ID: 6963f51029c0c9bf6406bd1cc69ae951bc53f9bf7751b16035515b5f764c58fe
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.2"
bundler-cache: true
- name: Run tests
run: bundle exec rake
- name: Report Coveralls
uses: coverallsapp/github-action@v2

test_legacy:
strategy:
matrix:
ruby_version:
- "3.1.4"
- "3.0.6"
- "2.7.8"
- "2.6.5"
runs-on: ubuntu-latest
name: Test ${{ matrix.ruby_version }}
outputs:
version_matrix: ${{ matrix.ruby_version }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ gemspec
group :test do
gem 'rake'
gem 'rspec', '~> 3.2'
gem 'webmock', :require => false
gem 'coveralls', :require => false
gem 'codeclimate-test-reporter', '~> 1.0.0'
gem 'webmock', require: false
gem 'coveralls_reborn', require: false
end

group :development do
Expand Down
35 changes: 16 additions & 19 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@ GEM
specs:
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
codeclimate-test-reporter (1.0.9)
simplecov (<= 0.13)
coderay (1.1.3)
coveralls (0.8.19)
json (>= 1.8, < 3)
simplecov (~> 0.12.0)
term-ansicolor (~> 1.3)
thor (~> 0.19.1)
tins (~> 1.6)
coveralls_reborn (0.28.0)
simplecov (~> 0.22.0)
term-ansicolor (~> 1.7)
thor (~> 1.2)
tins (~> 1.32)
crack (0.4.5)
rexml
diff-lcs (1.5.0)
docile (1.1.5)
docile (1.4.0)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
Expand Down Expand Up @@ -72,18 +69,19 @@ GEM
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
ruby2_keywords (0.0.5)
simplecov (0.12.0)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
sync (0.5.0)
term-ansicolor (1.7.1)
tins (~> 1.0)
thor (0.19.4)
thor (1.2.2)
tins (1.32.1)
sync
webmock (3.18.1)
webmock (3.19.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
Expand All @@ -92,13 +90,12 @@ PLATFORMS
ruby

DEPENDENCIES
codeclimate-test-reporter (~> 1.0.0)
coveralls
coveralls_reborn
heartland-retail!
pry
rake
rspec (~> 3.2)
webmock

BUNDLED WITH
1.17.2
2.3.26
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Heartland Retail API Client

[![Gem Version](https://badge.fury.io/rb/heartland-retail.png)](http://badge.fury.io/rb/heartland-retail)
[![Build Status](https://travis-ci.org/springboardretail/springboard-client-ruby.png?branch=master)](https://travis-ci.org/springboardretail/springboard-client-ruby)
[![Gem Version](https://badge.fury.io/rb/heartland-retail.svg)](https://badge.fury.io/rb/heartland-retail)
[![Build Status](https://github.com/springboardretail/springboard-client-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/springboardretail/springboard-client-ruby/actions/workflows/build.yml)
[![Code Climate](https://codeclimate.com/github/springboardretail/springboard-client-ruby.png)](https://codeclimate.com/github/springboardretail/springboard-client-ruby)
[![Coverage Status](https://coveralls.io/repos/github/springboardretail/springboard-client-ruby/badge.svg?branch=master)](https://coveralls.io/github/springboardretail/springboard-client-ruby?branch=master)

Expand Down
2 changes: 0 additions & 2 deletions heartland-retail.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Gem::Specification.new do |s|
s.authors = ['Jay Stotz', 'Derek Stotz']
s.summary = 'Heartland Retail API client library'

s.required_rubygems_version = '>= 1.3.6'

s.add_runtime_dependency 'faraday', '~> 1.0'
s.add_runtime_dependency 'json', '>= 1.7.4'
s.add_runtime_dependency 'hashie'
Expand Down
Binary file removed vendor/cache/codeclimate-test-reporter-1.0.9.gem
Binary file not shown.
Binary file removed vendor/cache/coveralls-0.8.19.gem
Binary file not shown.
Binary file added vendor/cache/coveralls_reborn-0.28.0.gem
Binary file not shown.
Binary file removed vendor/cache/docile-1.1.5.gem
Binary file not shown.
Binary file added vendor/cache/docile-1.4.0.gem
Binary file not shown.
Binary file removed vendor/cache/simplecov-0.12.0.gem
Binary file not shown.
Binary file added vendor/cache/simplecov-0.22.0.gem
Binary file not shown.
Binary file removed vendor/cache/simplecov-html-0.10.2.gem
Binary file not shown.
Binary file added vendor/cache/simplecov-html-0.12.3.gem
Binary file not shown.
Binary file added vendor/cache/simplecov_json_formatter-0.1.4.gem
Binary file not shown.
Binary file removed vendor/cache/thor-0.19.4.gem
Binary file not shown.
Binary file added vendor/cache/thor-1.2.2.gem
Binary file not shown.
Binary file removed vendor/cache/webmock-3.18.1.gem
Binary file not shown.
Binary file added vendor/cache/webmock-3.19.1.gem
Binary file not shown.

0 comments on commit 7031db9

Please sign in to comment.