Skip to content

Commit

Permalink
Add GitHub Actions Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mishina2228 committed Mar 11, 2022
1 parent 8107b09 commit c8022f5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- 2.3
- 2.4
- 2.5
- 2.6
- 2.7
- '3.0'
- 3.1
- head
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: rubocop
run: bundle exec rubocop
- name: test
run: bundle exec rake test
continue-on-error: ${{ matrix.ruby == 'head' }}

0 comments on commit c8022f5

Please sign in to comment.