From 99e2b4efa5d9d0b46b5a2418d4b86dc09c31109b Mon Sep 17 00:00:00 2001 From: baarkerlounger <5101747+baarkerlounger@users.noreply.github.com> Date: Wed, 8 Dec 2021 12:23:29 +0000 Subject: [PATCH] Add lint stage to pipeline (#155) --- .github/workflows/pipeline.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 6aab30e77..0c74fc45c 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -74,7 +74,22 @@ jobs: run: | bundle exec rspec + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + # runs 'bundle install' and caches installed gems automatically + bundler-cache: true + + - name: Rubocop + run: | + bundle exec rubocop deploy: name: Deploy @@ -82,7 +97,7 @@ jobs: runs-on: ubuntu-latest environment: 'sandbox' if: github.ref == 'refs/heads/main' - needs: test + needs: [lint, test] steps: - name: Checkout code