summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'