From 3148760bea29f74f62f7f30e5dd25f598c1dc108 Mon Sep 17 00:00:00 2001 From: Yuji Nakayama Date: Tue, 27 Oct 2020 11:41:57 +0900 Subject: [PATCH] Set up GitHub action for CI --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d51ba54 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI +on: [push, pull_request] +jobs: + rspec: + name: RSpec + runs-on: ubuntu-latest + strategy: + matrix: + ruby: [2.4, 2.5, 2.6, 2.7] + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - run: bundle install + - run: bundle exec rspec + rubocop: + name: RuboCop + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + - run: bundle install + - run: bundle exec rubocop