Browse Source

Add lint stage to pipeline (#155)

pull/156/head
baarkerlounger 3 years ago committed by GitHub
parent
commit
99e2b4efa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      .github/workflows/pipeline.yml

17
.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

Loading…
Cancel
Save