-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (40 loc) · 1 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Linting
env:
BUNDLE_WITHOUT: 'test development default'
on:
- push
- pull_request
jobs:
lint:
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
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install
run: yarn install
- name: Run prettier
run: yarn prettier --check .
- 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: Node Information
run: node --version
- name: Install
run: yarn install
- name: Run yarn lint
run: yarn lint