Merge pull request #379 from sanger/revert-358-develop #1015
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linting | |
env: | |
TZ: Europe/London | |
on: | |
- push | |
- pull_request | |
jobs: | |
ruby: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: | |
true # Runs bundle install and caches gems. See the ruby_test.yml | |
# example if you need more control over bundler. | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ steps.node_version.outputs.NODE_VERSION }} | |
- name: Install | |
run: yarn install | |
- name: Run prettier | |
run: yarn prettier --check . | |
- name: Run Rubocop | |
run: bundle exec rubocop --extra-details --display-style-guide --parallel |