summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-11-21 17:02:49 -0700
committermo khan <mo.khan@gmail.com>2020-11-21 17:02:49 -0700
commitfc3633c53a9e78b90e24be36c0cfde4d4aacb52c (patch)
tree1d5d9b3b2e8a2370120cf20b979ea0a679feaf06
parent486a1a17baef517703e34ecb2af90c9d5df6cff0 (diff)
chore: insteall GH action for running tests
-rw-r--r--.github/workflows/test.yml16
-rw-r--r--config.ru2
2 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..8af1637
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,16 @@
+name: ci
+on: [push]
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ruby: [ '2.4', '2.5', '2.6', '2.7' ]
+ name: RSpec Ruby ${{ matrix.ruby }}
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-ruby@v1
+ with:
+ ruby-version: ${{ matrix.ruby }}
+ - name: test
+ run: ./script/test
diff --git a/config.ru b/config.ru
index cc14a25..586d311 100644
--- a/config.ru
+++ b/config.ru
@@ -2,7 +2,7 @@
# Usage:
#
# $ ./script/server
-require 'server'
+require 'server'
app = Rack::Builder.new do
use Rack::Reloader if ENV['RACK_ENV'] != 'production'