From fc3633c53a9e78b90e24be36c0cfde4d4aacb52c Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 21 Nov 2020 17:02:49 -0700 Subject: chore: insteall GH action for running tests --- .github/workflows/test.yml | 16 ++++++++++++++++ config.ru | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml 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' -- cgit v1.2.3