From 51e66651d976bce36197b89c827f20e6310bf5e8 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Wed, 31 Jan 2024 16:37:48 +0000 Subject: [PATCH] Add a CI job for linting --- .github/workflows/test.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 313c6d672..bab1fb84f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,17 @@ jobs: with: engine: cruby-truffleruby min_version: 2.7 - + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.3" + bundler-cache: true + - name: Run rubocop + run: bundle exec rubocop irb: needs: ruby-versions name: rake test ${{ matrix.ruby }} ${{ matrix.with_latest_reline && '(latest reline)' || '' }}