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