From 63297033cc47baf2c794c6e2eee69503f2f6a0ca Mon Sep 17 00:00:00 2001 From: infiton Date: Mon, 4 Jul 2022 11:13:52 -0400 Subject: [PATCH] adds github workflow --- .github/workflows/ruby.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ruby.yml diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..db7dc43 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -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