From 8ea1bae83fc926b4bd821f539eff5d0ca3fe1af6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stas=20SU=C8=98COV?= <stas@nerd.ro>
Date: Fri, 17 Jan 2020 17:56:25 +0000
Subject: [PATCH] Switched to Github CI.

---
 .github/ISSUE_TEMPLATE.md        | 16 ++++++++++++++++
 .github/PULL_REQUEST_TEMPLATE.md | 17 +++++++++++++++++
 .github/workflows/ci.yml         | 22 ++++++++++++++++++++++
 .travis.yml                      | 27 ---------------------------
 README.md                        | 14 ++++++++------
 5 files changed, 63 insertions(+), 33 deletions(-)
 create mode 100644 .github/ISSUE_TEMPLATE.md
 create mode 100644 .github/PULL_REQUEST_TEMPLATE.md
 create mode 100644 .github/workflows/ci.yml
 delete mode 100644 .travis.yml

diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
new file mode 100644
index 0000000..17e2a6b
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE.md
@@ -0,0 +1,16 @@
+## Expected Behavior
+
+
+## Actual Behavior
+
+
+## Steps to Reproduce the Problem
+
+  1.
+  2.
+  3.
+
+## Specifications
+
+  - Version:
+  - Ruby version:
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..5a43961
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,17 @@
+## What is the current behavior?
+
+<!-- Please describe the current behavior that you are modifying, or link to a
+  relevant issue. -->
+
+## What is the new behavior?
+
+<!-- Please describe the behavior or changes that are being added here. -->
+
+## Checklist
+
+Please make sure the following requirements are complete:
+
+- [ ] Tests for the changes have been added (for bug fixes / features)
+- [ ] Docs have been reviewed and added / updated if needed (for bug fixes /
+  features)
+- [ ] All automated checks pass (CI/CD)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..7442f05
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,22 @@
+name: CI
+
+on: [push]
+
+jobs:
+  ruby_rails_test_matrix:
+    runs-on: ubuntu-18.04
+
+    strategy:
+      matrix:
+        ruby: [2.4, 2.6]
+
+    steps:
+    - uses: actions/checkout@master
+
+    - name: Sets up the environment
+      uses: actions/setup-ruby@v1
+      with:
+        ruby-version: ${{ matrix.ruby }}
+
+    - name: Runs code QA and tests
+      run: gem install bundler && bundle && rake
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index fef7e35..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-language: ruby
-sudo: false
-before_install:
-  - bundle update
-env:
-  global:
-    - CC_TEST_REPORTER_ID=5a21617c609bf70cc2abf155658612079ab61bc67dbdba5588b5862c6fd3fb1e
-    - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
-rvm:
-  - 2.2.2
-  - 2.3.3
-  - ruby-head
-matrix:
-  allow_failures:
-    - rvm: ruby-head
-before_script:
-  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
-  - chmod +x ./cc-test-reporter
-  - ./cc-test-reporter before-build
-after_script:
-  # Preferably you will run test-reporter on branch update events. But
-  # if you setup travis to build PR updates only, you don't need to run
-  # the line below
-  - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
-  # In the case where travis is setup to build PR updates only,
-  # uncomment the line below
-  # - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
diff --git a/README.md b/README.md
index f07aa01..4643cf9 100644
--- a/README.md
+++ b/README.md
@@ -2,12 +2,6 @@
 
 RSpec matchers for [JSON API](http://jsonapi.org).
 
-## Status
-
-[![Gem Version](https://badge.fury.io/rb/jsonapi-rspec.svg)](https://badge.fury.io/rb/jsonapi-rspec)
-[![Build Status](https://secure.travis-ci.org/jsonapi-rb/jsonapi-rspec.svg?branch=master)](http://travis-ci.org/jsonapi-rb/jsonapi-rspec?branch=master)
-[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/jsonapi-rb/Lobby)
-
 ## Resources
 
 * Chat: [gitter](http://gitter.im/jsonapi-rb)
@@ -61,6 +55,14 @@ Checking for an included resource:
 expect(response_body['included'])
   .to include(have_type('posts').and have_id('1'))
 ```
+## Contributing
+
+Bug reports and pull requests are welcome on GitHub at
+https://github.com/jsonapi-rb/jsonapi-rspec
+
+This project is intended to be a safe, welcoming space for collaboration, and
+contributors are expected to adhere to the
+[Contributor Covenant](http://contributor-covenant.org) code of conduct.
 
 ## License
 
