Merge branch 'develop' into develop-Y24-190 #6661
Workflow file for this run
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: | |
BUNDLE_WITHOUT: 'test development default' | |
on: | |
- push | |
- pull_request | |
jobs: | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby # Prettier has a Ruby dependency | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true # Runs bundle install and caches gems. | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install Node dependencies | |
run: yarn install | |
- name: Run prettier | |
run: yarn prettier --check . | |
rubocop: | |
name: RuboCop | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true # Runs bundle install and caches gems. | |
- name: Setup Node # RuboCop has a Prettier dependency for formatting | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install Node dependencies | |
run: yarn install | |
- name: Run lint | |
run: bundle exec rubocop --extra-details --display-style-guide --parallel | |
eslint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install Node dependencies | |
run: yarn install | |
- name: Run ESLint | |
run: yarn lint |