From e3d40005cd415bbd0eb62b1e77e587e887ced855 Mon Sep 17 00:00:00 2001 From: Ethan Donowitz <134718600+ethan-readyset@users.noreply.github.com> Date: Thu, 2 Nov 2023 19:18:50 -0400 Subject: [PATCH] build: Add CI --- .github/workflows/rubocop.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/rubocop.yml diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml new file mode 100644 index 0000000..ecd0e3c --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -0,0 +1,21 @@ +name: Ruby + +on: [push, pull_request] + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['2.6', '2.7', '3.0'] + + steps: + - uses: actions/checkout@v3 + - 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: Run tests + run: bundle exec rubocop