DEV: Replace Travis with GitHub Actions (#202)

DEV: Replace Travis with GitHub Actions (#202)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..0a6c8d3
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,54 @@
+name: CI
+
+on:
+  pull_request:
+  push:
+    branches:
+      - master
+    tags:
+      - v*
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    strategy:
+      matrix:
+        ruby:
+          - 2.5
+          - 2.6
+          - 2.7
+
+    steps:
+      - uses: actions/checkout@v1
+
+      - name: Setup ruby
+        uses: actions/setup-ruby@v1
+        with:
+          ruby-version: ${{ matrix.ruby }}
+          architecture: 'x64'
+
+      - name: Setup bundler
+        run: gem install bundler
+
+      - name: Setup gems
+        run: bundle install
+
+      - name: Rubocop
+        run: bundle exec rubocop
+
+      - name: RSpec
+        run: bundle exec rspec
+
+  publish:
+    if: contains(github.ref, 'refs/tags/v')
+    needs: build
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Release Gem
+        uses: CvX/publish-rubygems-action@master
+        env:
+          RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index c6237b5..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-language: 'ruby'
-
-before_install:
-  - 'gem update --system'
-  - 'gem install bundler'
-
-rvm:
-  - '2.5.5'
-  - '2.6.2'
-
-script: 'bundle exec rake'

GitHub sha: a6fc1c58

This commit appears in #202 which was merged by CvX.