From 36eed2ed5b75fc09dbead8e69ab13c01b16fc7ed Mon Sep 17 00:00:00 2001 From: Jakob Skjerning Date: Sat, 7 Oct 2023 12:53:07 +0200 Subject: [PATCH] Run StandardRB linting on pull requests --- .github/workflows/main.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3be79bb..bb4388c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,14 +3,24 @@ name: Ruby on: [push,pull_request] jobs: - build: + tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 + - uses: ruby/setup-ruby@v1 with: - ruby-version: 3.0.2 + ruby-version: 3.2.2 bundler-cache: true - name: Run the default task run: bundle exec rake + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2.2 + bundler-cache: true + - name: Lint + run: bundle exec standardrb