Skip to content

Commit

Permalink
adds github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
infiton committed Jul 4, 2022
1 parent 4f1445b commit 6329703
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ['2.4', '2.5']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: rubocop
run: bundle exec rubocop
- name: tests
run: bundle exec rake test

0 comments on commit 6329703

Please sign in to comment.