-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 892 Bytes
/
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
45
46
47
name: Lint
on:
push:
branches:
- main
pull_request:
env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
jobs:
lint:
name: Lint code
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- uses: actions/setup-node@master
with:
node-version: ${{ env.NODE_VERSION }}
- run: bundle exec rubocop -P
name: Lint Ruby files
- run: bundle exec mdl *.md
name: Lint Markdown files
- run: npm ci
name: Install JS deps
- run: bundle exec erblint app/views/**/*.erb
name: Lint ERB files
- run: npm run stylelint
name: Lint SCSS files
- run: npm run lint
name: Lint JS files