Skip to content

Commit

Permalink
Switch CI from TravisCI to GitHub Actions
Browse files Browse the repository at this point in the history
Also remove deprecated code coverage reporter and updated test dependencies
  • Loading branch information
dstotz committed Oct 10, 2023
1 parent d332da7 commit fbc02f0
Show file tree
Hide file tree
Showing 20 changed files with 72 additions and 41 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,47 @@
name: build
on:
push:
branches:
- master
tags:
- '!*'
pull_request:

jobs:
test:
name: Test 3.2.2
runs-on: ubuntu-latest
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
- name: Report CodeClimate
run: bundle exec codeclimate-test-reporter
env:
CODECLIMATE_REPO_TOKEN: 6963f51029c0c9bf6406bd1cc69ae951bc53f9bf7751b16035515b5f764c58fe

test_legacy:
strategy:
matrix:
ruby_version:
- "2.7.8"
- "2.6.5"
- "2.5.9"
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.

7 changes: 4 additions & 3 deletions Gemfile
Expand Up @@ -5,9 +5,10 @@ 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
gem 'codeclimate-test-reporter'

end

group :development do
Expand Down
38 changes: 19 additions & 19 deletions Gemfile.lock
Expand Up @@ -11,19 +11,18 @@ GEM
specs:
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
codeclimate-test-reporter (1.0.9)
simplecov (<= 0.13)
codeclimate-test-reporter (1.0.7)
simplecov
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 +71,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 +92,13 @@ PLATFORMS
ruby

DEPENDENCIES
codeclimate-test-reporter (~> 1.0.0)
coveralls
codeclimate-test-reporter
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
@@ -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
Binary file added vendor/cache/codeclimate-test-reporter-1.0.7.gem
Binary file not shown.
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 fbc02f0

Please sign in to comment.