From 3e7eb70e6caccc1f03fa4fff2952ec9f9a7b016a Mon Sep 17 00:00:00 2001 From: Yusuke Todaka Date: Thu, 17 Dec 2020 16:18:38 +0900 Subject: [PATCH] Introduce github actions for CI (#207) --- .github/workflows/pull_request.yml | 20 ++++++++++++++++++++ .travis.yml | 15 --------------- 2 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/pull_request.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 00000000..7903ca12 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,20 @@ +name: Pull Request CI + +on: [ pull_request ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: [ '2.4', '2.5', '2.6', '2.7' ] + name: Ruby v${{ matrix.ruby }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - run: gem install bundler + - run: bundle install + - run: bundle exec rubocop + - run: bundle exec rspec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2a5addd6..00000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: ruby -rvm: - - 2.2 - - 2.3 - - 2.4 - - 2.5 - - 2.6 - - 2.7 -before_install: - - if [ ${TRAVIS_RUBY_VERSION} = '2.2' ]; then - gem install bundler -v '< 2'; - fi -script: - - bundle exec rubocop - - bundle exec rspec